btrfs-progs/mkfs
Qu Wenruo 18ecbfd3dd btrfs-progs: open the devices exclusively for writes
There is an internal report that, during btrfs-convert to block-group
tree, by accident some systemd events triggered the mount of the target
fs.

This leads to double mount (one by kernel and one by the btrfs-progs),
which seems to cause quite some problems.

To avoid such accident, exclusively opens all devices if btrfs-progs is
doing write operations.

Pull-request: #888
Reported-by: pandada8 <pandada8@gmail.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
2024-09-17 14:33:22 +02:00
..
Makefile btrfs-progs: build: add stub makefile to image and mkfs 2019-07-04 15:36:01 +02:00
common.c btrfs-progs: introduce btrfs_make_subvolume() 2024-07-30 19:54:04 +02:00
common.h btrfs-progs: introduce btrfs_make_subvolume() 2024-07-30 19:54:04 +02:00
main.c btrfs-progs: open the devices exclusively for writes 2024-09-17 14:33:22 +02:00
rootdir.c btrfs-progs: mkfs: print only first warning when --rootdir finds a hardlink 2024-08-15 00:02:39 +02:00
rootdir.h btrfs-progs: mkfs: rework how we traverse rootdir 2024-08-14 23:58:27 +02:00