From: Eric Levy <contact@ericlevy.name>
To: linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: option to mount read-only subvolume with read-write access
Date: Thu, 10 Nov 2022 08:50:57 -0500 [thread overview]
Message-ID: <X4X4LR.21Q66E3SQOHF@ericlevy.name> (raw)
In-Reply-To: <20221110121249.GE5824@twin.jikos.cz>
> So that would be a silent change in the subvolume and not detectable
> by
> eg. checking the generation. That would break incremental send at
> least
> and goes against the point of read-only subvolume.
> Yeah but the other mount points would see the old data, depending on
> the
> cached status of the blocks.
Perhaps a different feature would be needed, then, of a new property
that makes a subvolume appear as read-only, at least from the
standpoint of the VFS, when accessed through a mount point higher on
the file tree, but not when mounted directly.
>> I think it does not have a well defined semantics, what you ask
>> seems to
> be some kind of multi headed subvolume that could appear different
> depending on the way it's accessed from the VFS mount point which is
> out
> of reach in many cases.
I'm not sure whether this means the same as I just wrote, or not.
> I'd probably need to understand what you mean in the first sentence
> "At
> times it is helpful", I don't have an idea where it would be helpful.
In some scenarios, upcoming changes to a file tree, intended to become
the default mounts in future boot sessions, will be staged in a closed
environment, which may include use of "chroot". It is helpful for the
subvolume to be read-write in the environment created by temporary
mount points, but still protected from accidental modification through
its physical location on the root tree.
next prev parent reply other threads:[~2022-11-10 13:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-10 10:12 option to mount read-only subvolume with read-write access Eric Levy
2022-11-10 12:12 ` David Sterba
2022-11-10 13:50 ` Eric Levy [this message]
2022-11-10 16:46 ` Matthew Warren
2022-11-10 16:52 ` Eric Levy
2022-11-14 20:33 ` David Sterba
2022-11-14 21:11 ` Eric Levy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=X4X4LR.21Q66E3SQOHF@ericlevy.name \
--to=contact@ericlevy.name \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox