public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrei Borzenkov <arvidjaar@gmail.com>
To: linux-btrfs@vger.kernel.org
Subject: Re: [PATCH 4/5] btrfs-progs: property: ro->rw and received_uuid
Date: Sat, 2 Oct 2021 10:05:19 +0300	[thread overview]
Message-ID: <cf04c434-c95d-eb88-770d-ca564a97dcb3@gmail.com> (raw)
In-Reply-To: <4c02eb0d00433fa95b77befecafcdf147c230f21.1633101904.git.dsterba@suse.com>

On 01.10.2021 18:29, David Sterba wrote:
> Implement safety check when a read-only subvolume is getting switched
> to read-write and there's received_uuid set.
> 
> This prevents accidental breakage of incremental send usecase but allows
> user to do the rw change anyway but resets the received_uuid in that
> case.
> 
> As this is implemented entirely in userspace, it's racy and using the
> raw ioctl won't prevent it nor reset the received_uuid.
> 

Is it feasible to add "force" flag to ioctl itself?

  reply	other threads:[~2021-10-02  7:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-01 15:28 [PATCH 0/5] Subvolume ro/rw and received_uuid David Sterba
2021-10-01 15:28 ` [PATCH 1/5] btrfs-progs: subvol show: print send and receive generation and timestamp David Sterba
2021-10-01 15:28 ` [PATCH 2/5] btrfs-progs: dump-tree: print complete root_item David Sterba
2021-10-01 15:29 ` [PATCH 3/5] btrfs-progs: props: add force parameter to set David Sterba
2021-10-01 15:29 ` [PATCH 4/5] btrfs-progs: property: ro->rw and received_uuid David Sterba
2021-10-02  7:05   ` Andrei Borzenkov [this message]
2021-10-04 15:22     ` David Sterba
2021-10-04 10:10   ` Nikolay Borisov
2021-10-04 15:21     ` David Sterba
2021-10-01 15:29 ` [PATCH 5/5] btrfs-progs: tests: subvolume ro->rw switch " David Sterba

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=cf04c434-c95d-eb88-770d-ca564a97dcb3@gmail.com \
    --to=arvidjaar@gmail.com \
    --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