]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc94913551b5b93db59fb439e02e7993a53224c37
treed8d9ec6222a0334698ab8443888ab21f7dcb9ce4
parent2827ae15dc0f2c90e519a70f2b9ddebe33f2361f
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