btrfs-progs: docs: fix more typos and spelling errors
[platform/upstream/btrfs-progs.git] / Documentation / btrfstune.asciidoc
1 btrfstune(8)
2 ============
3
4 NAME
5 ----
6 btrfstune - tune various filesystem parameters
7
8 SYNOPSIS
9 --------
10 *btrfstune* [options] <dev> [<dev>...]
11
12 DESCRIPTION
13 -----------
14 *btrfstune* can be used to enable, disable or set various filesystem
15 parameters. The filesystem must be unmounted.
16
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 .
21
22 OPTIONS
23 -------
24 -S <0|1>::
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.
28 -r::
29 Enable extended inode refs (hardlink limit per file in a directory is 65536),
30 enabled by mkfs feature 'extref'. Since kernel 3.7.
31 -x::
32 Enable skinny metadata extent refs (more efficient representation of extents),
33 enabled by mkfs feature 'skinny-metadata'. Since kernel 3.10.
34 -n::
35 Enable no-holes feature (more efficient representation of file holes), enabled
36 by mkfs feature 'no-holes'. Since kernel 3.14.
37 -f::
38 Allow dangerous changes, e.g. clear the seeding flag or change fsid. Make sure
39 that you are aware of the dangers.
40 -u::
41 Change fsid to a randomly generated UUID or continue previous fsid change
42 operation in case it was interrupted.
43 -U <UUID>::
44 Change fsid to 'UUID'.
45 +
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'.
50
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.
54
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
58 that. +
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.
62
63 EXIT STATUS
64 -----------
65 *btrfstune* returns 0 if no error happened, 1 otherwise.
66
67 COMPATIBILITY NOTE
68 ------------------
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.
72
73 SEE ALSO
74 --------
75 `mkfs.btrfs`(8)