6 btrfstune - tune various filesystem parameters
10 *btrfstune* [options] <dev> [<dev>...]
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 .
25 Enable seeding on a given device. Value 1 will enable seeding, 0 will disable it. +
26 A seeding filesystem is forced to be mounted read-only. A new device can be added
27 to the filesystem and will capture all writes keeping the seeding device intact.
29 Enable extended inode refs (hardlink limit per file in a directory is 65536),
30 enabled by mkfs feature 'extref'. Since kernel 3.7.
32 Enable skinny metadata extent refs (more efficient representation of extents),
33 enabled by mkfs feature 'skinny-metadata'. Since kernel 3.10.
35 Enable no-holes feature (more efficient representation of file holes), enabled
36 by mkfs feature 'no-holes'. Since kernel 3.14.
38 Allow dangerous changes, e.g. clear the seeding flag or change fsid. Make sure
39 that you are aware of the dangers.
41 Change fsid to a randomly generated UUID or continue previous fsid change
42 operation in case it was interrupted.
44 Change fsid to 'UUID'.
46 The 'UUID' should be a 36 bytes string in `printf`(3) format
47 '"%08x-%04x-%04x-%04x-%012x"'.
48 If there is a previous unfinished fsid change, it will continue only if the
49 'UUID' matches the unfinished one or if you use the option '-u'.
51 WARNING: Cancelling or interrupting a UUID change operation will make the
52 filesystem temporarily unmountable. To fix it, rerun 'btrfstune -u' to restore
53 the UUID and let it complete.
55 WARNING: Clearing the seeding flag on a device may be dangerous.
56 If a previously-seeding device is changed, all filesystems that used that
57 device will become unmountable. Setting the seeding flag back will not fix
59 A valid usecase is 'seeding device as a base image'. Clear the seeding
60 flag, update the filesystem and make it seeding again, provided that it's OK
61 to throw away all filesystems built on top of the previous base.
65 *btrfstune* returns 0 if no error happened, 1 otherwise.
69 This tool exists for historical reasons but is still in use today. The
70 functionality is about to be merged to the main tool someday and *btrfstune*
71 will become deprecated and removed afterwards.