Date: Mon, 20 Dec 2021 17:12:52 +0000 From: bugzilla-noreply@freebsd.org To: fs@FreeBSD.org Subject: [Bug 260507] FreeBSD 13.0: zfs snapshot does not store a snapshot in the .zfs/snapshot directory Message-ID: <bug-260507-3630-0yRImIVrG5@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-260507-3630@https.bugs.freebsd.org/bugzilla/> References: <bug-260507-3630@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260507 --- Comment #5 from Yonas Yanfa <yonas.yanfa@gmail.com> --- (In reply to Andriy Gapon from comment #4) For some reason, this test passes successfully on zroot, but not on my seco= nd pool called 'backups': $ zfs create zroot/test $ echo 'some content' | tee /zroot/test/blah $ zfs set snapdir=3Dvisible zroot/test $ zfs snapshot zroot/test@now $ find /zroot/test/.zfs/ $ find /zroot/test/.zfs/snapshot/now/blah $ cat /zroot/test/.zfs/snapshot/now/blah $ truncate -s0 /zroot/test/blah $ zfs rollback zroot/test@now $ if [ -s /zroot/test/blah ] ; then echo 'Test passed successfully.'; else = echo 'Test failed.' ; fi Here's a diff between the two pools list of properties: --- k.backups 2021-12-20 11:59:48.707273000 -0500 +++ k.zroot 2021-12-20 11:46:29.929758000 -0500 @@ -1,15 +1,15 @@ NAME PROPERTY VALUE SOURCE type filesystem - -creation Wed Dec 15 17:39 2021 - -used 1.43M - -available 9.20G - -referenced 260K - -compressratio 1.15x - +creation Wed Dec 15 16:56 2021 - +used 977M - +available 6.31G - +referenced 96K - +compressratio 1.90x - mounted yes - quota none default reservation none default recordsize 128K default -mountpoint /backups default +mountpoint /zroot local sharenfs off default checksum on default compression lz4 local @@ -35,12 +35,12 @@ sharesmb off default refquota none default refreservation none default -guid 1789944234026602685 - +guid 3029096334883593733 - primarycache all default secondarycache all default usedbysnapshots 0B - -usedbydataset 260K - -usedbychildren 1.17M - +usedbydataset 96K - +usedbychildren 977M - usedbyrefreservation 0B - logbias latency default objsetid 54 - @@ -48,10 +48,10 @@ mlslabel none default sync standard default dnodesize legacy default -refcompressratio 1.70x - -written 260K - -logicalused 606K - -logicalreferenced 198K - +refcompressratio 1.00x - +written 96K - +logicalused 1.70G - +logicalreferenced 42.5K - volmode default default filesystem_limit none default snapshot_limit none default Output of `zfs list`: backups 1.44M 9.20G 260K /backups backups/nfs 192K 9.20G 96K /backups/nfs backups/nfs/new-documents 96K 9.20G 96K /backups/nfs/new-documen= ts zroot 1.01G 6.26G 104K /zroot zroot/ROOT 1024M 6.26G 96K none zroot/ROOT/default 1024M 6.26G 1024M / zroot/test 500K 6.26G 500K /zroot/test zroot/tmp 128K 6.26G 128K /tmp zroot/usr 1.83M 6.26G 96K /usr zroot/usr/home 1.55M 6.26G 1.55M /usr/home zroot/usr/ports 96K 6.26G 96K /usr/ports zroot/usr/src 96K 6.26G 96K /usr/src zroot/var 884K 6.26G 96K /var zroot/var/audit 96K 6.26G 96K /var/audit zroot/var/crash 96K 6.26G 96K /var/crash zroot/var/log 396K 6.26G 396K /var/log zroot/var/mail 104K 6.26G 104K /var/mail zroot/var/tmp 96K 6.26G 96K /var/tmp --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-260507-3630-0yRImIVrG5>