btrfs: Introduce new mount option usebackuproot to replace recovery
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Tue, 19 Jan 2016 02:23:02 +0000 (10:23 +0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 12 Feb 2016 14:14:14 +0000 (15:14 +0100)
commit8dcddfa048de637c8bbfa20ffd22757aeab7c604
treed8d9ec6222a0334698ab8443888ab21f7dcb9ce4
parent388f7b1d6e8ca06762e2454d28d6c3c55ad0fe95
btrfs: Introduce new mount option usebackuproot to replace recovery

Current "recovery" mount option will only try to use backup root.
However the word "recovery" is too generic and may be confusing for some
users.

Here introduce a new and more specific mount option, "usebackuproot" to
replace "recovery" mount option.
"Recovery" will be kept for compatibility reason, but will be
deprecated.

Also, since "usebackuproot" will only affect mount behavior and after
open_ctree() it has nothing to do with the filesystem, so clear the flag
after mount succeeded.

This provides the basis for later unified "norecovery" mount option.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
[ dropped usebackuproot from show_mount, added note about 'recovery' to
  docs ]
Signed-off-by: David Sterba <dsterba@suse.com>
Documentation/filesystems/btrfs.txt
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/super.c