1BTRFS-PROPERTY(8) Btrfs Manual BTRFS-PROPERTY(8)
2
3
4
6 btrfs-property - get/set/list properties for given btrfs object.
7
9 btrfs property <subcommand> <args>
10
12 btrfs property is used to get/set/list property for given btrfs object.
13 See the description of get subcommand for more information about both
14 btrfs object and property.
15
16 btrfs property provides an unified and user-friendly method to tune
17 different btrfs properties instead of using the traditional method like
18 chattr(1) or lsattr(1).
19
21 get [-t <type>] <object> [<name>]
22 Gets a property from a btrfs object.
23
24 A btrfs object, which is set by <object>, can be a btrfs filesystem
25 itself, a btrfs subvolume, an inode(file or directory) inside
26 btrfs, or a device on which a btrfs exists.
27
28 The -t <type> option can be used to explicitly specify what type of
29 object you meant. This is only needed when a property could be set
30 for more then one object type.
31
32 Possible types are s[ubvol], f[ilesystem], i[node] and d[evice].
33
34 Set the name of property by <name>. If no <name> is specified, all
35 properties for the given object are printed. <name> is one of the
36 followings.
37
38 ro
39 read-only flag of subvolume: true or false
40
41 label
42 label of device
43
44 compression
45 compression setting for an inode: lzo, zlib, or "" (empty
46 string)
47
48 list [-t <type>] <object>
49 Lists available properties with their descriptions for the given
50 object.
51
52 See the description of get subcommand for the meaning of each
53 option.
54
55 set [-t <type>] <object> <name> <value>
56 Sets a property on a btrfs object.
57
58 See the description of get subcommand for the meaning of each
59 option.
60
62 btrfs property returns a zero exit status if it succeeds. Non zero is
63 returned in case of failure.
64
66 btrfs is part of btrfs-progs. Please refer to the btrfs wiki
67 http://btrfs.wiki.kernel.org for further details.
68
70 mkfs.btrfs(8), lsattr(1), chattr(1)
71
72
73
74Btrfs v4.9.1 08/06/2017 BTRFS-PROPERTY(8)