From nobody Sat May 04 01:31:29 2024 X-Original-To: freebsd-stable@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 4VWVWT2Kk6z5JxQG for ; Sat, 4 May 2024 01:31:33 +0000 (UTC) (envelope-from wollman@hergotha.csail.mit.edu) Received: from hergotha.csail.mit.edu (tunnel82308-pt.tunnel.tserv4.nyc4.ipv6.he.net [IPv6:2001:470:1f06:ccb::2]) (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 "garrett.wollman.name", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VWVWT0b8pz40YJ; Sat, 4 May 2024 01:31:33 +0000 (UTC) (envelope-from wollman@hergotha.csail.mit.edu) Authentication-Results: mx1.freebsd.org; none Received: from hergotha.csail.mit.edu (localhost [127.0.0.1]) by hergotha.csail.mit.edu (8.17.1/8.17.1) with ESMTPS id 4441VUBl028976 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 3 May 2024 21:31:31 -0400 (EDT) (envelope-from wollman@hergotha.csail.mit.edu) Received: (from wollman@localhost) by hergotha.csail.mit.edu (8.17.1/8.17.1/Submit) id 4441VTeE028974; Fri, 3 May 2024 21:31:29 -0400 (EDT) (envelope-from wollman) List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <26165.36849.451200.198723@hergotha.csail.mit.edu> Date: Fri, 3 May 2024 21:31:29 -0400 From: Garrett Wollman To: Brooks Davis Cc: freebsd-stable@freebsd.org Subject: Re: ZFS property inheritance broken for `readonly`? In-Reply-To: References: <26165.22926.598276.904906@hergotha.csail.mit.edu> X-Mailer: VM 8.2.0b under 29.2 (amd64-portbld-freebsd13.2) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.4 (hergotha.csail.mit.edu [0.0.0.0]); Fri, 03 May 2024 21:31:31 -0400 (EDT) X-Spam-Status: No, score=-1.8 required=5.0 tests=ALL_TRUSTED, HEADER_FROM_DIFFERENT_DOMAINS,NICE_REPLY_A,T_SCC_BODY_TEXT_LINE autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on hergotha.csail.mit.edu 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:6939, ipnet:2001:470::/32, country:US] X-Rspamd-Queue-Id: 4VWVWT0b8pz40YJ < said: >> [I wrote:] >> The child filesystem `export/cl/u` should have inherited the readonly >> setting from `export/cl` but instead it (and all other children) have >> overridden it, and I have to manually `zfs inherit readonly` on all of >> the children to get the proper behavior. This is quite surprising, >> and the first time it happened I was sure that something had gone >> wrong. > I find myself wondering if ZFS was unable to downgrade the mount and > this is a transient state, but the fact that inherit works suggests > otherwise. I suppose it could be a missing case in the spl layer. It definitely *used to* work; this has been part of our standard migration procedure for a good decade now, and it's only since we upgraded to 13 that it stopped working. -GAWollman