From nobody Mon Dec 20 17:12:52 2021 X-Original-To: fs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id CC3AC18F6968 for ; Mon, 20 Dec 2021 17:12:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JHmPJ32jVz3w2v for ; Mon, 20 Dec 2021 17:12:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 496C31A1AC for ; Mon, 20 Dec 2021 17:12:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1BKHCqRQ019010 for ; Mon, 20 Dec 2021 17:12:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BKHCqZx019009 for fs@FreeBSD.org; Mon, 20 Dec 2021 17:12:52 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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 Date: Mon, 20 Dec 2021 17:12:52 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: yonas.yanfa@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640020372; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=D5+08BK7eGc0sgvYzdEuhjZ5VevMGkE7f04luErwf0c=; b=Xz24t7pBZGguhZ7EvHIYUw9qr3N+Y+lXjDAcIvMG9xAdcCg8Hyl8PVppAFCZuewfjtkrxl r+bUIbvpy5VrnkfMCFdkX2IBQCXEvmJ8fPCO7FSivXEPCUe4uB6LjylJCukA7FbNKsvHWE SLfTcBQkUcYv1QKQAdoXokeBepQ5fOIxtNQwLEL4h0LudAqcwekUJj95/co3rTgXL0IbRU VeBxC8XJmVs4SEAyCVQN3npNtkHtgVt+iND1yIRrw903d1jM49SefTFLzsRBpv0N9qzuip aRU80GD684c3w+KXMwjNfGK8YmVAZCoUj+Fs97f7B45XRXLobEatakl7dp22fQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640020372; a=rsa-sha256; cv=none; b=sQnMBhBH33eG68FjEKqngiSh/0wnYjchcWO2IQRhMUSpt/Dw4j3evfr4hGXovK51cMub+l Cd4uk9bac19LywBhmlQ2E8e47wLCGg9i2SL10YjeuumKXvAqbl3DrtDEZ7I1yYD9dHYfP7 z+DlNatR6hkvU0ah4mAMmeszpj94o5zmWKxN104JNtTwMyqAN2OVOMFaXfy72/CZEIoF37 x6KnjVUrfkfc3Qq9RIdCL4161XWQE03rdcUAfIUbRyiTse8HV5LkHaO6EXb5VtOQ+eoS9C 8CEb2owKhq0eLTnSkpR+K/Weh/B0UhcrotC3s6mdGXpVUrIST2s+Wk2HGtnYIw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260507 --- Comment #5 from Yonas Yanfa --- (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.=