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-12-19 07:22:49 +00:00
|
|
|
*btrfs property* is used to get/set/list property for given btrfs object.
|
|
|
|
See the description of *get* subcommand for more information about
|
|
|
|
both btrfs object and property.
|
2014-04-15 07:04:50 +00:00
|
|
|
|
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.
|
|
|
|
+
|
2014-12-19 07:22:49 +00:00
|
|
|
A btrfs object, which is set by <object>, can be a btrfs filesystem
|
|
|
|
itself, a btrfs subvolume, an inode(file or directory) inside btrfs,
|
|
|
|
or a device on which a btrfs exists.
|
2014-04-15 07:04:50 +00:00
|
|
|
+
|
2015-01-09 07:08:56 +00:00
|
|
|
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]'.
|
|
|
|
+
|
2014-12-19 07:22:49 +00:00
|
|
|
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.
|
2015-01-09 07:08:56 +00:00
|
|
|
|
2014-12-19 07:22:49 +00:00
|
|
|
ro::::
|
|
|
|
read-only flag of subvolume: true or false
|
|
|
|
label::::
|
|
|
|
label of device
|
|
|
|
compression::::
|
|
|
|
compression setting for an inode: lzo, zlib, or "" (empty string)
|
|
|
|
|
2015-01-03 01:18:15 +00:00
|
|
|
*list* [-t <type>] <object>::
|
|
|
|
Lists available properties with their descriptions for the given object.
|
2014-04-15 07:04:50 +00:00
|
|
|
+
|
2014-12-19 07:22:49 +00:00
|
|
|
See the description of *get* subcommand for the meaning of each option.
|
2014-04-15 07:04:50 +00:00
|
|
|
|
2015-01-03 01:18:15 +00:00
|
|
|
*set* [-t <type>] <object> <name> <value>::
|
|
|
|
Sets a property on a btrfs object.
|
2014-04-15 07:04:50 +00:00
|
|
|
+
|
2014-12-19 07:22:49 +00:00
|
|
|
See the description of *get* subcommand for the meaning of each option.
|
2014-04-15 07:04:50 +00:00
|
|
|
|
|
|
|
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)
|