btrfs-progs: mkfs: Separate shrink from rootdir
authorQu Wenruo <wqu@suse.com>
Thu, 19 Oct 2017 09:13:55 +0000 (17:13 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 8 Jan 2018 17:15:15 +0000 (18:15 +0100)
commit1c9c5f7fb3f6a2182d230d469b22b3b1329f24d8
tree7bdd2d05a882a68d1883e16d2970f17152f2cff9
parentc28418daed603d4943edc8b213b91f8d1e2b9fe3
btrfs-progs: mkfs: Separate shrink from rootdir

Make --shrink a separate option for --rootdir, and change the default to
off.

The shrinking behaviour is not a commonly used feature but can be useful
for creating minimal pre-filled images, in one step, without requiring
to mount.

Signed-off-by: Qu Wenruo <wqu@suse.com>
[ update changelog and error messages ]
Signed-off-by: David Sterba <dsterba@suse.com>
Documentation/mkfs.btrfs.asciidoc
mkfs/main.c
mkfs/rootdir.c
mkfs/rootdir.h