summaryrefslogtreecommitdiff
path: root/fs/btrfs/backref.h
diff options
context:
space:
mode:
authorMiao Xie <miaox@cn.fujitsu.com>2012-11-26 08:44:50 (GMT)
committerChris Mason <chris.mason@fusionio.com>2012-12-17 01:46:09 (GMT)
commitda24927b1e1925da5c1885cb483231dabe027e15 (patch)
tree6d28cb9342d4251a8eb0116f79ee3816843c9a61 /fs/btrfs/backref.h
parent198605a8e2077f174c9834c97b836f535e4e56dd (diff)
downloadlinux-fsl-qoriq-da24927b1e1925da5c1885cb483231dabe027e15.tar.xz
Btrfs: get write access when removing a device
Steps to reproduce: # mkfs.btrfs -d single -m single <disk0> <disk1> # mount -o ro <disk0> <mnt0> # mount -o ro <disk0> <mnt1> # mount -o remount,rw <mnt0> # umount <mnt0> # btrfs device delete <disk1> <mnt1> We can remove a device from a R/O filesystem. The reason is that we just check the R/O flag of the super block object. It is not enough, because the kernel may set the R/O flag only for the mount point. We need invoke mnt_want_write_file() to do a full check. Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/backref.h')
0 files changed, 0 insertions, 0 deletions