2014-04-15 07:04:50 +00:00
|
|
|
btrfs-property(8)
|
|
|
|
=================
|
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
2017-10-17 18:27:12 +00:00
|
|
|
btrfs-property - get/set/list properties for given filesystem object
|
2014-04-15 07:04:50 +00:00
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
2014-05-19 15:49:35 +00:00
|
|
|
*btrfs property* <subcommand> <args>
|
2014-04-15 07:04:50 +00:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2017-10-17 18:27:12 +00:00
|
|
|
*btrfs property* is used to get/set/list property for given filesystem object.
|
|
|
|
The object can be an inode (file or directory), subvolume or the whole
|
|
|
|
filesystem. See the description of *get* subcommand for more information about
|
2014-12-19 07:22:49 +00:00
|
|
|
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>]::
|
2017-10-17 18:27:12 +00:00
|
|
|
get property from a btrfs <object> of given <type>
|
2014-04-15 07:04:50 +00:00
|
|
|
+
|
2014-12-19 07:22:49 +00:00
|
|
|
A btrfs object, which is set by <object>, can be a btrfs filesystem
|
2017-10-17 18:27:12 +00:00
|
|
|
itself, a btrfs subvolume, an inode (file or directory) inside btrfs,
|
2014-12-19 07:22:49 +00:00
|
|
|
or a device on which a btrfs exists.
|
2014-04-15 07:04:50 +00:00
|
|
|
+
|
2017-05-31 11:49:08 +00:00
|
|
|
The option '-t' can be used to explicitly
|
2015-01-09 07:08:56 +00:00
|
|
|
specify what type of object you meant. This is only needed when a
|
|
|
|
property could be set for more then one object type.
|
|
|
|
+
|
2017-10-17 18:27:12 +00:00
|
|
|
Possible types are 's[ubvol]', 'f[ilesystem]', 'i[node]' and 'd[evice]', where
|
|
|
|
the first lettes is a shortcut.
|
2015-01-09 07:08:56 +00:00
|
|
|
+
|
2017-05-31 11:49:08 +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
|
2017-10-17 18:27:12 +00:00
|
|
|
the following:
|
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::::
|
2019-08-03 21:44:03 +00:00
|
|
|
label of the filesystem. For an unmounted filesystem, provide a path to a block
|
|
|
|
device as object. For a mounted filesystem, specify a mount point.
|
2014-12-19 07:22:49 +00:00
|
|
|
compression::::
|
2017-10-17 18:27:12 +00:00
|
|
|
compression algorithm set for an inode, possible values: 'lzo', 'zlib', 'zstd'.
|
|
|
|
To disable compression use "" (empty string), 'no' or 'none'.
|
2014-12-19 07:22:49 +00:00
|
|
|
|
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)
|