]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
btrfs: refuse to remount read-write after abort
authorDavid Sterba <dsterba@suse.cz>
Fri, 13 Sep 2013 15:41:20 +0000 (17:41 +0200)
committerChris Mason <chris.mason@fusionio.com>
Sat, 21 Sep 2013 15:05:30 +0000 (11:05 -0400)
commit6ef3de9c9252b186720122d3ae7122a81d49f8ee
treef6159369e950934cc5b90f4858a2ff902e95b201
parent1cecf579d161527f610ef0da852dd6122e434a49
btrfs: refuse to remount read-write after abort

It's still possible to flip the filesystem into RW mode after it's
remounted RO due to an abort. There are lots of places that check for
the superblock error bit and will not write data, but we should not let
the filesystem appear read-write.

Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/super.c