summaryrefslogtreecommitdiffstats
path: root/fs/splice.c
diff options
context:
space:
mode:
authorLiu Bo <liubo2009@cn.fujitsu.com>2012-05-11 18:11:26 +0800
committerJosef Bacik <josef@redhat.com>2012-05-30 10:23:35 -0400
commit9ba1f6e44ed7a1fa52d3f292508bf921b5054172 (patch)
tree2c20508be673a9ebce14d27efa6ee05a04695787 /fs/splice.c
parentd1ac6e41d5437385957fd708e285defd0b1a430c (diff)
downloadblackbird-op-linux-9ba1f6e44ed7a1fa52d3f292508bf921b5054172.tar.gz
blackbird-op-linux-9ba1f6e44ed7a1fa52d3f292508bf921b5054172.zip
Btrfs: do not do balance in readonly mode
In normal cases, we would not be allowed to do balance in RO mode. However, when we're using a seeding device and adding another device to sprout, things will change: $ mkfs.btrfs /dev/sdb7 $ btrfstune -S 1 /dev/sdb7 $ mount /dev/sdb7 /mnt/btrfs -o ro $ btrfs fi bal /mnt/btrfs -----------------------> fail. $ btrfs dev add /dev/sdb8 /mnt/btrfs $ btrfs fi bal /mnt/btrfs -----------------------> works! It should not be designed as an exception, and we'd better add another check for mnt flags. Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com> Reviewed-by: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'fs/splice.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud