aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorJosef Bacik <[email protected]>2024-01-10 17:54:41 +0000
committerDavid Sterba <[email protected]>2024-01-18 22:38:54 +0000
commit2018ef1d9ac3e95448b9206adc3425b0431c2411 (patch)
tree8794fcc0c06faf8763f55180f15f8ba79d66f09a /rust/helpers.c
parentbtrfs: don't warn if discard range is not aligned to sector (diff)
downloadkernel-2018ef1d9ac3e95448b9206adc3425b0431c2411.tar.gz
kernel-2018ef1d9ac3e95448b9206adc3425b0431c2411.zip
btrfs: use the original mount's mount options for the legacy reconfigure
btrfs/330, which tests our old trick to allow mount -o ro,subvol=/x /dev/sda1 /foo mount -o rw,subvol=/y /dev/sda1 /bar fails on the block group tree. This is because we aren't preserving the mount options for what is essentially a remount, and thus we're ending up without the FREE_SPACE_TREE mount option, which triggers our free space tree delete codepath. This isn't possible with the block group tree and thus it falls over. Fix this by making sure we copy the existing mount options for the existing fs mount over in this case. Fixes: f044b318675f ("btrfs: handle the ro->rw transition for mounting different subvolumes") Reviewed-by: Neal Gompa <[email protected]> Signed-off-by: Josef Bacik <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions