6 btrfstune - tune various filesystem parameters
10 *btrfstune* [options] <device> [<device>...]
14 *btrfstune* can be used to enable, disable, or set various filesystem
15 parameters. The filesystem must be unmounted.
17 The common usecase is to enable features that were not enabled at mkfs time.
18 Please make sure that you have kernel support for the features. You can find a
19 complete list of features and kernel version of their introduction at
20 https://btrfs.wiki.kernel.org/index.php/Changelog#By_feature . Also, the
21 manual page `mkfs.btrfs`(8) contains more details about the features.
23 Some of the features could be also enabled on a mounted filesystem by other
24 means. Please refer to the 'FILESYSTEM FEATURES' in `btrfs`(5).
29 Enable seeding on a given device. Value 1 will enable seeding, 0 will disable it. +
30 A seeding filesystem is forced to be mounted read-only. A new device can be added
31 to the filesystem and will capture all writes keeping the seeding device intact.
36 Enable extended inode refs (hardlink limit per file in a directory is 65536),
37 enabled by mkfs feature 'extref'.
42 Enable skinny metadata extent refs (more efficient representation of extents),
43 enabled by mkfs feature 'skinny-metadata'.
45 All newly created extents will use the new representation. To completely switch
46 the entire filesystem, run a full balance of the metadata. Please refer to
52 Enable no-holes feature (more efficient representation of file holes), enabled
53 by mkfs feature 'no-holes'.
56 Allow dangerous changes, e.g. clear the seeding flag or change fsid. Make sure
57 that you are aware of the dangers.
60 Change fsid to a randomly generated UUID or continue previous fsid change
61 operation in case it was interrupted.
64 Change fsid to 'UUID'.
66 The 'UUID' should be a 36 bytes string in `printf`(3) format
67 '"%08x-%04x-%04x-%04x-%012x"'.
68 If there is a previous unfinished fsid change, it will continue only if the
69 'UUID' matches the unfinished one or if you use the option '-u'.
71 WARNING: Cancelling or interrupting a UUID change operation will make the
72 filesystem temporarily unmountable. To fix it, rerun 'btrfstune -u' to restore
73 the UUID and let it complete.
75 WARNING: Clearing the seeding flag on a device may be dangerous.
76 If a previously-seeding device is changed, all filesystems that used that
77 device will become unmountable. Setting the seeding flag back will not fix
79 A valid usecase is 'seeding device as a base image'. Clear the seeding
80 flag, update the filesystem and make it seeding again, provided that it's OK
81 to throw away all filesystems built on top of the previous base.
85 *btrfstune* returns 0 if no error happened, 1 otherwise.
90 This deprecated tool exists for historical reasons but is still in use today.
91 Its functionality will be merged to the main tool, at which time *btrfstune*
92 will be declared obsolete and scheduled for removal.