btrfs-progs: docs, update btrfs(8) manual page

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2016-01-07 16:28:05 +01:00
parent 4ec28aec76
commit 894c346714
1 changed files with 15 additions and 9 deletions

View File

@ -11,21 +11,27 @@ SYNOPSIS
DESCRIPTION DESCRIPTION
----------- -----------
*btrfs* is used to control the filesystem and the files and directories stored. The *btrfs* utility is a toolbox for managing btrfs filesystems. There are
It is the tool to create or destroy a snapshot or a subvolume for the command groups to work with subvolumes, devices, for whole filesystem or other
filesystem, to defrag a file or a directory, flush the data to the disk, specific actions. See section *COMMANDS*.
to resize the filesystem, to scan the device.
COMMAND SYTNAX
--------------
Any command name can be shortened as far as it stays unambiguous,
however it is recommended to use full command names in scripts.
All command groups have their manual page named *btrfs-<group>*.
It is possible to abbreviate the commands unless the commands are ambiguous.
For example: it is possible to run *btrfs sub snaps* instead of For example: it is possible to run *btrfs sub snaps* instead of
*btrfs subvolume snapshot*. *btrfs subvolume snapshot*.
But *btrfs file s* is not allowed, because *file s* may be interpreted But *btrfs file s* is not allowed, because *file s* may be interpreted
both as *filesystem show* and as *filesystem sync*. both as *filesystem show* and as *filesystem sync*.
If a command is terminated by '--help', the detailed help is showed. If the command name is ambiguous, the list of conflicting options is
If the passed command matches more commands, printed.
detailed help of all the matched commands is showed. For example
*btrfs dev --help* shows the help of all *device** commands. For an overview of a given command use 'btrfs command --help'
or 'btrfs [command...] --help --full' to print all available options.
COMMANDS COMMANDS
-------- --------