public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] Subvolume ro/rw and received_uuid
@ 2021-10-01 15:28 David Sterba
  2021-10-01 15:28 ` [PATCH 1/5] btrfs-progs: subvol show: print send and receive generation and timestamp David Sterba
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: David Sterba @ 2021-10-01 15:28 UTC (permalink / raw)
  To: linux-btrfs; +Cc: David Sterba

Here's implemented the userspace prevention of accidental ro->rw switch
of sent subvolumes. It's not finialized but the main idea is there so
here we go argue, as we haven't reached a consensus with Nikolay what is
the right usability approach.

There are two patches extending the printed information about root items
and subvolumes but they're only for convenience, that I also used for
debugging.

David Sterba (5):
  btrfs-progs: subvol show: print send and receive generation and
    timestamp
  btrfs-progs: dump-tree: print complete root_item
  btrfs-progs: props: add force parameter to set
  btrfs-progs: property: ro->rw and received_uuid
  btrfs-progs: tests: subvolume ro->rw switch and received_uuid

 cmds/property.c                               | 99 ++++++++++++++++---
 cmds/props.h                                  |  3 +-
 cmds/subvolume.c                              | 21 ++++
 kernel-shared/print-tree.c                    | 53 +++++-----
 .../050-receive-prop-ro-to-rw/test.sh         | 42 ++++++++
 5 files changed, 172 insertions(+), 46 deletions(-)
 create mode 100755 tests/misc-tests/050-receive-prop-ro-to-rw/test.sh

-- 
2.33.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-10-04 15:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox