]> git.ipfire.org Git - people/ms/linux.git/commit - fs/btrfs/super.c
Btrfs: make compress and nodatacow mount options mutually exclusive
authorAndrei Popa <andrei.popa@i-neo.ro>
Thu, 20 Sep 2012 14:42:11 +0000 (08:42 -0600)
committerChris Mason <chris.mason@fusionio.com>
Tue, 9 Oct 2012 13:20:03 +0000 (09:20 -0400)
commitbedb2cca7252d08c6ca3085826e30f65bdc3b54b
treec4ce295d803c5f862c678a2ee504dbedbfe95a6e
parent489406626c42c0176fddae2182d33be2cfb9840c
Btrfs: make compress and nodatacow mount options mutually exclusive

If a filesystem is mounted with compression and then remounted by adding nodatacow,
the compression is disabled but the compress flag is still visible.
Also, if a filesystem is mounted with nodatacow and then remounted with compression,
nodatacow flag is still present but it's not active.
This patch:
- removes compress flags and notifies that the compression has been disabled if the
  filesystem is mounted with nodatacow
- removes nodatacow and nodatasum flags if mounted with compress.

Signed-off-by: Andrei Popa <andrei.popa@i-neo.ro>
fs/btrfs/super.c