Skip to content

Instantly share code, notes, and snippets.

@pcd1193182
Created May 23, 2018 20:52
Show Gist options
  • Save pcd1193182/4cf44576ba2f9cc5e5fa6a341b7bc77c to your computer and use it in GitHub Desktop.
Save pcd1193182/4cf44576ba2f9cc5e5fa6a341b7bc77c to your computer and use it in GitHub Desktop.
index b47b669e80..9868aa3020 100644
--- a/usr/src/lib/libzfs/common/libzfs_diff.c
+++ b/usr/src/lib/libzfs/common/libzfs_diff.c
@@ -359,13 +359,13 @@ describe_free(FILE *fp, differ_info_t *di, uint64_t object, char *namebuf,
if (get_stats_for_obj(di, di->fromsnap, object, namebuf,
maxlen, &sb) != 0) {
- /* Let it slide, if in the delete queue on from side */
- if (di->zerr == ENOENT && sb.zs_links == 0) {
- di->zerr = 0;
- return (0);
- }
return (-1);
}
+ /* Don't print if in the delete queue on from side */
+ if (di->zerr == ESTALE) {
+ di->zerr = 0;
+ return (0);
+ }
print_file(fp, di, ZDIFF_REMOVED, namebuf, &sb);
return (0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment