2014-04-15 07:04:50 +00:00
|
|
|
btrfs-property(8)
|
|
|
|
=================
|
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
btrfs-property - get/set/list properties for given btrfs object.
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
2014-05-19 15:49:35 +00:00
|
|
|
*btrfs property* <subcommand> <args>
|
2014-04-15 07:04:50 +00:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2014-05-19 15:49:35 +00:00
|
|
|
*btrfs property* is used to get/set/list property, like lable or compression
|
2014-04-15 07:04:50 +00:00
|
|
|
state, for given btrfs object.
|
|
|
|
|
2014-05-19 15:49:35 +00:00
|
|
|
*btrfs property* provides an unified and user-friendly method to tune different
|
2014-04-15 07:04:50 +00:00
|
|
|
btrfs properties instead of using the traditional method like `chattr`(1) or
|
|
|
|
`lsattr`(1).
|
|
|
|
|
|
|
|
SUBCOMMAND
|
|
|
|
----------
|
2014-05-19 15:49:35 +00:00
|
|
|
*get* [-t <type>] <object> [<name>]::
|
2014-04-15 07:04:50 +00:00
|
|
|
Gets a property from a btrfs object.
|
|
|
|
+
|
|
|
|
If no name is specified, all properties for the given object are
|
|
|
|
printed.
|
|
|
|
A filesystem object can be a the filesystem itself, a subvolume,
|
|
|
|
an inode or a device.
|
|
|
|
+
|
|
|
|
The '-t <type>' option can be used to explicitly
|
|
|
|
specify what type of object you meant. This is only needed when a
|
|
|
|
property could be set for more then one object type.
|
|
|
|
+
|
|
|
|
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.
|
|
|
|
|
2014-05-19 15:49:35 +00:00
|
|
|
*set* [-t <type>] <object> <name> <value>::
|
2014-04-15 07:04:50 +00:00
|
|
|
Sets a property on a btrfs object.
|
|
|
|
+
|
2014-05-19 15:49:35 +00:00
|
|
|
See description of *get* subcommand for a description of objects and object
|
2014-04-15 07:04:50 +00:00
|
|
|
types.
|
|
|
|
|
2014-05-19 15:49:35 +00:00
|
|
|
*list* [-t <type>] <object>::
|
2014-04-15 07:04:50 +00:00
|
|
|
Lists available properties with their descriptions for the given object.
|
|
|
|
+
|
2014-05-19 15:49:35 +00:00
|
|
|
Please see the help of *btrfs property get* for a description of
|
2014-04-15 07:04:50 +00:00
|
|
|
objects and object types.
|
|
|
|
|
|
|
|
EXIT STATUS
|
|
|
|
-----------
|
2014-09-19 01:49:59 +00:00
|
|
|
*btrfs property* returns a zero exit status if it succeeds. Non zero is
|
2014-04-15 07:04:50 +00:00
|
|
|
returned in case of failure.
|
|
|
|
|
|
|
|
AVAILABILITY
|
|
|
|
------------
|
2014-05-19 16:04:26 +00:00
|
|
|
*btrfs* is part of btrfs-progs.
|
2014-04-15 07:04:50 +00:00
|
|
|
Please refer to the btrfs wiki http://btrfs.wiki.kernel.org for
|
|
|
|
further details.
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
|
|
|
`mkfs.btrfs`(8),
|
|
|
|
`lsattr`(1),
|
2014-09-09 02:09:00 +00:00
|
|
|
`chattr`(1)
|