Skip to content
Commit bedb2cca authored by Andrei Popa's avatar Andrei Popa Committed by Chris Mason
Browse files

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: default avatarAndrei Popa <andrei.popa@i-neo.ro>
parent 48940662
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment