From 18bf3f15a3cdac7055773d308d07408043c57b27 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Fri, 2 Jan 2015 17:51:06 +0100 Subject: [PATCH] btrfs-progs: doc filesystem, add unit suffixes to option descriptions Reported-by: Chris Murphy Signed-off-by: David Sterba --- Documentation/btrfs-filesystem.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Documentation/btrfs-filesystem.txt b/Documentation/btrfs-filesystem.txt index 654847c..24aa3a6 100644 --- a/Documentation/btrfs-filesystem.txt +++ b/Documentation/btrfs-filesystem.txt @@ -77,22 +77,23 @@ compress file contents while defragmenting defragment files recursively -f:::: flush filesystem after defragmenting --s :::: +-s [kKmMgGtTpPeE]:::: defragment only from byte onward --l :::: +-l [kKmMgGtTpPeE]:::: defragment only up to bytes --t :::: +-t [kKmMgGtTpPeE]:::: defragment only files at least bytes big + -For , , it is possible to append a suffix -like 'k' for 1 KBytes, 'm' for 1 MBytes... +For , , it is possible to append +units designator: \'K', \'M', \'G', \'T', \'P', or \'E', which represent +KiB, MiB, GiB, TiB, PiB, or EiB, respectively. Case does not matter. + WARNING: defragmenting with kernels up to 2.6.37 will unlink COW-ed copies of data, don't use it if you use snapshots, have de-duplicated your data or made copies with `cp --reflink`. // Some wording are extracted by the resize2fs man page -*resize* [:][+/-][gkm]|[:]max :: +*resize* [:][+/-][kKmMgGtTpPeE]|[:]max :: Resize a filesystem identified by for the underlying device devid *online*. + The devid can be found with *btrfs filesystem show* and @@ -103,8 +104,7 @@ by the quantity . If no units are specified, the unit of the parameter defaults to bytes. Optionally, the size parameter may be suffixed by one of the following units designators: \'K', \'M', \'G', \'T', \'P', or \'E', which represent -KiB, MiB, GiB, TiB, PiB, or EiB, respectively. - +KiB, MiB, GiB, TiB, PiB, or EiB, respectively. Case does not matter. + If \'max' is passed, the filesystem will occupy all available space on the device devid. -- 2.7.4