From owner-freebsd-bugs@FreeBSD.ORG Sat Aug 16 20:55:17 2014 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7E442D88 for ; Sat, 16 Aug 2014 20:55:17 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5EBF42909 for ; Sat, 16 Aug 2014 20:55:17 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s7GKtHds066503 for ; Sat, 16 Aug 2014 20:55:17 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 192715] New: zfs diff does not report accurate file deletion differences Date: Sat, 16 Aug 2014 20:55:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 9.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: kgeorge@tcpsoft.com X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2014 20:55:17 -0000 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@FreeBSD.org Reporter: kgeorge@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@atlantis ~]# zfs create tank/test [root@atlantis ~]# cd /tank/test [root@atlantis /tank/test]# touch a [root@atlantis /tank/test]# zfs snapshot tank/test@1 [root@atlantis /tank/test]# zfs snapshot tank/test@2 [root@atlantis /tank/test]# rm a [root@atlantis /tank/test]# zfs diff tank/test@1 M /tank/test/ - /tank/test/a [root@atlantis /tank/test]# zfs diff tank/test@2 M /tank/test/ [root@atlantis /tank/test]# [root@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@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@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@async_destroy enabled local tank feature@empty_bpobj active local tank feature@lz4_compress enabled local tank feature@multi_vdev_crash_dump enabled local tank feature@spacemap_histogram active local tank feature@enabled_txg active local tank feature@hole_birth active local tank feature@extensible_dataset enabled local tank feature@bookmarks enabled local tank feature@filesystem_limits enabled local -- You are receiving this mail because: You are the assignee for the bug.