• Qu Wenruo's avatar
    btrfs: Introduce new mount option usebackuproot to replace recovery · 8dcddfa0
    Qu Wenruo authored
    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: default avatarQu Wenruo <quwenruo@cn.fujitsu.com>
    [ dropped usebackuproot from show_mount, added note about 'recovery' to
      docs ]
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    8dcddfa0
btrfs.txt 9.55 KB