[Bug 192715] New: zfs diff does not report accurate file deletion differences

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Aug 16 20:55:17 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192715

            Bug ID: 192715
           Summary: zfs diff does not report accurate file deletion
                    differences
           Product: Base System
           Version: 9.3-RELEASE
          Hardware: amd64
                OS: Any
            Status: Needs Triage
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: kgeorge at tcpsoft.com

'zfs diff' does not report accurate file deletion differences.  I noticed this
when I created a snapshot of a dataset, removed some files, and then performed
a diff.  It did not show all the files that were removed.  Here's a recipe to
reproduce:

[root at atlantis ~]# zfs create tank/test
[root at atlantis ~]# cd /tank/test
[root at atlantis /tank/test]# touch a
[root at atlantis /tank/test]# zfs snapshot tank/test at 1
[root at atlantis /tank/test]# zfs snapshot tank/test at 2
[root at atlantis /tank/test]# rm a
[root at atlantis /tank/test]# zfs diff tank/test at 1
M       /tank/test/
-       /tank/test/a
[root at atlantis /tank/test]# zfs diff tank/test at 2
M       /tank/test/
[root at atlantis /tank/test]#
[root at atlantis /tank/test]# uname -a

However, I'm not sure if this is the only case that triggers this bug.

I am running 9.3-RELEASE:

[root at atlantis /tank/test]# uname -a
FreeBSD atlantis 9.3-RELEASE FreeBSD 9.3-RELEASE #0 r268512: Thu Jul 10
23:44:39 UTC 2014     root at snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

I'm apparently not the only one experiencing this.  A search on Illumos' bug
tracker let me to this issue:

https://www.illumos.org/issues/3043

which led to this issue in zfsonlinux:

https://github.com/zfsonlinux/zfs/issues/2081.

For what it's worth, my zpool was originally created as v28 on 9.0-RELEASE and
has been upgrated to v5000 with the following feature flags:

tank  feature at async_destroy          enabled                        local
tank  feature at empty_bpobj            active                         local
tank  feature at lz4_compress           enabled                        local
tank  feature at multi_vdev_crash_dump  enabled                        local
tank  feature at spacemap_histogram     active                         local
tank  feature at enabled_txg            active                         local
tank  feature at hole_birth             active                         local
tank  feature at extensible_dataset     enabled                        local
tank  feature at bookmarks              enabled                        local
tank  feature at filesystem_limits      enabled                        local

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list