@@ -60,6 +60,18 @@ assume an answer of 'yes' to all questions.
-v::::
verbose mode.
+*undelete-subvol* <device>::
+Undelete deleted subvolumes that still left intact on the device.
++
+This command will create the lost+found directory, and recover all the
+subvolumes to this directory with the name "sub<id>". If -s <subvolid> option
+is given, then just recover the subvolume which specified by <subvolid>.
++
+`Options`
++
+-s::::
+specify the subvolume which will be recovered.
+
*zero-log* <device>::
clear the filesystem log tree
+
@@ -35,7 +35,7 @@ _btrfs()
commands_balance='start pause cancel resume status'
commands_device='scan add delete remove ready stats usage'
commands_scrub='start cancel resume status'
- commands_rescue='chunk-recover super-recover zero-log'
+ commands_rescue='chunk-recover super-recover undelete-subvol zero-log'
commands_inspect_internal='inode-resolve logical-resolve subvolid-resolve rootid min-dev-size dump-tree dump-super tree-stats'
commands_property='get set list'
commands_quota='enable disable rescan'
Add undelete-subvol to btrfs-completion, and update btrfs-rescue documentation to introduce undelete-subvol. Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com> --- v2: just add -s option documentation. Documentation/btrfs-rescue.asciidoc | 12 ++++++++++++ btrfs-completion | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-)