diff mbox

[10/10] btrfs-progs: undelete-subvol: update completion and documentation

Message ID 20180202082751.26225-11-lufq.fnst@cn.fujitsu.com
State New, archived
Headers show

Commit Message

Lu Fengqi Feb. 2, 2018, 8:27 a.m. UTC
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>
 Documentation/btrfs-rescue.asciidoc | 6 ++++++
 btrfs-completion                    | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)
diff mbox


diff --git a/Documentation/btrfs-rescue.asciidoc b/Documentation/btrfs-rescue.asciidoc
index 743a23a64287..9c6fbd82ef2d 100644
--- a/Documentation/btrfs-rescue.asciidoc
+++ b/Documentation/btrfs-rescue.asciidoc
@@ -60,6 +60,12 @@  assume an answer of 'yes' to all questions.
 verbose mode.
+*undelete-subvol* <device>::
+Undelete all 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>".
 *zero-log* <device>::
 clear the filesystem log tree
diff --git a/btrfs-completion b/btrfs-completion
index ae683f4ecf61..859595155a4b 100644
--- a/btrfs-completion
+++ b/btrfs-completion
@@ -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'