diff mbox series

[3/3] btrfs-progs: rescue: Update docs with create-control-device

Message ID 41ce291ac76b461c891ae64fbe18dcbb723178ef.1604013169.git.dxu@dxuuu.xyz (mailing list archive)
State New, archived
Headers show
Series btrfs-progs: rescue: Add create-control-device subcommand | expand

Commit Message

Daniel Xu Oct. 29, 2020, 11:17 p.m. UTC
This commit updates the documentation for the new `btrfs rescue
create-control-device` subcommand.

Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
---
 Documentation/btrfs-man5.asciidoc   | 8 +++++++-
 Documentation/btrfs-rescue.asciidoc | 5 +++++
 2 files changed, 12 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/Documentation/btrfs-man5.asciidoc b/Documentation/btrfs-man5.asciidoc
index 65352009..082599c1 100644
--- a/Documentation/btrfs-man5.asciidoc
+++ b/Documentation/btrfs-man5.asciidoc
@@ -898,12 +898,18 @@  filesystem module:
 * get the supported features (can be also found under '/sys/fs/btrfs/features')
 
 The device is usually created by a system device node manager (eg. udev), but
-can be created manually:
+can be created manually with:
 
 --------------------
 # mknod --mode=600 c 10 234 /dev/btrfs-control
 --------------------
 
+or with:
+
+--------------------
+# btrfs rescue create-control-device
+--------------------
+
 The control device is not strictly required but the device scanning will not
 work and a workaround would need to be used to mount a multi-device filesystem.
 The mount option 'device' can trigger the device scanning during mount.
diff --git a/Documentation/btrfs-rescue.asciidoc b/Documentation/btrfs-rescue.asciidoc
index af544372..db40ce64 100644
--- a/Documentation/btrfs-rescue.asciidoc
+++ b/Documentation/btrfs-rescue.asciidoc
@@ -93,6 +93,11 @@  the log and the filesystem may be mounted normally again. The keywords to look
 for are 'open_ctree' which says that it's during mount and function names
 that contain 'replay', 'recover' or 'log_tree'.
 
+*create-control-device* ::
+Creates /dev/btrfs-control control device
++
+This command is for convenience when *mknod* is not installed on a system.
+
 EXIT STATUS
 -----------
 *btrfs rescue* returns a zero exit status if it succeeds. Non zero is