@@ -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.
@@ -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
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(-)