mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-18 02:36:56 +00:00
btrfs-progs: Enhance the document of btrfs property
Enhance the document of btrfs property as follows. - Add the description about the candidates of <name>. - Enrich the description of <object>. - Fix typos and some redundancy. Signed-off-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com> Reported-by: Naohiro Aota <naota@elisp.net> Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
parent
08efa54a6e
commit
ca8638eae3
@ -11,8 +11,9 @@ SYNOPSIS
|
|||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
*btrfs property* is used to get/set/list property, like lable or compression
|
*btrfs property* is used to get/set/list property for given btrfs object.
|
||||||
state, for given btrfs object.
|
See the description of *get* subcommand for more information about
|
||||||
|
both btrfs object and property.
|
||||||
|
|
||||||
*btrfs property* provides an unified and user-friendly method to tune different
|
*btrfs property* provides an unified and user-friendly method to tune different
|
||||||
btrfs properties instead of using the traditional method like `chattr`(1) or
|
btrfs properties instead of using the traditional method like `chattr`(1) or
|
||||||
@ -23,31 +24,36 @@ SUBCOMMAND
|
|||||||
*get* [-t <type>] <object> [<name>]::
|
*get* [-t <type>] <object> [<name>]::
|
||||||
Gets a property from a btrfs object.
|
Gets a property from a btrfs object.
|
||||||
+
|
+
|
||||||
If no name is specified, all properties for the given object are
|
A btrfs object, which is set by <object>, can be a btrfs filesystem
|
||||||
printed.
|
itself, a btrfs subvolume, an inode(file or directory) inside btrfs,
|
||||||
A filesystem object can be a the filesystem itself, a subvolume,
|
or a device on which a btrfs exists.
|
||||||
an inode or a device.
|
|
||||||
+
|
+
|
||||||
|
Set the name of property by '<name>'. If no '<name>' is specified,
|
||||||
|
all properties for the given object are printed. '<name>' is one of
|
||||||
|
the followings.
|
||||||
|
+
|
||||||
|
ro::::
|
||||||
|
read-only flag of subvolume: true or false
|
||||||
|
label::::
|
||||||
|
label of device
|
||||||
|
compression::::
|
||||||
|
compression setting for an inode: lzo, zlib, or "" (empty string)
|
||||||
|
|
||||||
The '-t <type>' option can be used to explicitly
|
The '-t <type>' option can be used to explicitly
|
||||||
specify what type of object you meant. This is only needed when a
|
specify what type of object you meant. This is only needed when a
|
||||||
property could be set for more then one object type.
|
property could be set for more then one object type.
|
||||||
+
|
+
|
||||||
Possible types are 's[ubvol]', 'f[ilesystem]', 'i[node]' and 'd[evice]'.
|
Possible types are 's[ubvol]', 'f[ilesystem]', 'i[node]' and 'd[evice]'.
|
||||||
+
|
|
||||||
The <object> can be path of btrfs device, btrfs mount point, or any
|
|
||||||
directories/files inside btrfs.
|
|
||||||
|
|
||||||
*set* [-t <type>] <object> <name> <value>::
|
*set* [-t <type>] <object> <name> <value>::
|
||||||
Sets a property on a btrfs object.
|
Sets a property on a btrfs object.
|
||||||
+
|
+
|
||||||
See description of *get* subcommand for a description of objects and object
|
See the description of *get* subcommand for the meaning of each option.
|
||||||
types.
|
|
||||||
|
|
||||||
*list* [-t <type>] <object>::
|
*list* [-t <type>] <object>::
|
||||||
Lists available properties with their descriptions for the given object.
|
Lists available properties with their descriptions for the given object.
|
||||||
+
|
+
|
||||||
Please see the help of *btrfs property get* for a description of
|
See the description of *get* subcommand for the meaning of each option.
|
||||||
objects and object types.
|
|
||||||
|
|
||||||
EXIT STATUS
|
EXIT STATUS
|
||||||
-----------
|
-----------
|
||||||
|
Loading…
Reference in New Issue
Block a user