From nobody Thu Nov 16 18:35:03 2023 X-Original-To: freebsd-questions@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 4SWTH30npyz50y5q for ; Thu, 16 Nov 2023 18:35:11 +0000 (UTC) (envelope-from jamie@freebsd.org) Received: from gritton.org (gritton.org [67.43.236.212]) (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 (2048 bits) client-digest SHA256) (Client CN "gritton.org", Issuer "gritton.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SWTH25rytz3THt for ; Thu, 16 Nov 2023 18:35:10 +0000 (UTC) (envelope-from jamie@freebsd.org) Authentication-Results: mx1.freebsd.org; none Received: from gritton.org (localgritton [127.0.0.212]) (authenticated bits=0) by gritton.org (8.16.1/8.16.1) with ESMTPA id 3AGIZ38N032045; Thu, 16 Nov 2023 10:35:03 -0800 (PST) (envelope-from jamie@freebsd.org) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Date: Thu, 16 Nov 2023 10:35:03 -0800 From: James Gritton To: freebsd-questions@freebsd.org Cc: Matthias Petermann Subject: Re: Snapdir of Nullfs-mounted Dataset incomplete in Jail In-Reply-To: <8ada22f7-f25c-47e9-829e-c22a2630a691@petermann-it.de> References: <8ada22f7-f25c-47e9-829e-c22a2630a691@petermann-it.de> User-Agent: Roundcube Webmail/1.4.11 Message-ID: X-Sender: jamie@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36666, ipnet:67.43.224.0/20, country:CA] X-Rspamd-Queue-Id: 4SWTH25rytz3THt On 2023-11-16 06:22, Matthias Petermann wrote: > Hello everyone, > ... > Here's the problem: Snapshots are continuously created by Sanoid from > the host. Over time, I now get different directory listings of snapdir > depending on where I list it from: when listing from the host at > /zroot/data/shares/.zfs/snapshot, everything is complete. In the Jail > at /shares/.zfs/snapshot, the newer snapshots are missing. > > If I then go to the host and execute the following: > > ``` > % doas ls -lah /zroot/data/shares/.zfs/snapshot/* > ``` > > ...I get all the snapshots with sub-directories listed as expected. > > Surprisingly, after that, I can also see the snapshots from within the > Jail. > > A similar issue is discussed in [1] and [2]. > > Where is my mistake in thinking? No mistake in thinking. I don't know what's going on there, but it's definitely not expected behavior. If I knew ZFS better I could say for whether it was truly a bug, though I suspect it is. - Jamie