public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: David Sterba <dsterba@suse.cz>
To: Eric Levy <contact@ericlevy.name>
Cc: linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: option to mount read-only subvolume with read-write access
Date: Thu, 10 Nov 2022 13:12:49 +0100	[thread overview]
Message-ID: <20221110121249.GE5824@twin.jikos.cz> (raw)
In-Reply-To: <G1N4LR.84UPK81F80SK3@ericlevy.name>

On Thu, Nov 10, 2022 at 05:12:52AM -0500, Eric Levy wrote:
> At times it is helpful to modify a subvolume to which has been assigned 
> a read-only property, without changing the property.

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. If you'd want to do a
silent change it would have to be something that does not need to
copy-on-write any block (that requires generation change) so it would
have to be in-place and with recalculated checksum.

> One reason for 
> keeping the property is that the same subvolume may be reachable 
> through another mount point. Another is to ensure that the property 
> persists even if some operation fails to complete.

Yeah but the other mount points would see the old data, depending on the
cached status of the blocks.

> Would you consider adding a mount option to cause the system to ignore 
> a read-only property for the subvolume accessed through the mount 
> point, without affecting access to the same subvolume through other 
> mount points?

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'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.

  reply	other threads:[~2022-11-10 12:13 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 [this message]
2022-11-10 13:50   ` Eric Levy
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=20221110121249.GE5824@twin.jikos.cz \
    --to=dsterba@suse.cz \
    --cc=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