btrfs-progs: defrag: add a brief warning about ref-link breakage
authorPavel Kretov <firegurafiku@gmail.com>
Tue, 24 Oct 2017 22:47:45 +0000 (01:47 +0300)
committerDavid Sterba <dsterba@suse.com>
Tue, 14 Nov 2017 14:59:00 +0000 (15:59 +0100)
commita624f1616731da6113ab9c6613be733ab41e664b
treed41c18a5f00ba63e3d22901b7154c869b8a551d0
parentea085932dc7ef0dfebf09455c347c72b6bffad95
btrfs-progs: defrag: add a brief warning about ref-link breakage

There is a warning in btrfs-filesystem(8) saying that running 'defrag'
in Linux will almost certainly break ref-links, with much data potentially
being physically duplicated.

However, many users tend to read man pages *after* trying to run things
on their own risk and may miss this important information. This commit
adds a brief copy of this warning into the command built-in help message
where it has good chances to be spotted before user is stuck with
a crowded filesystem.

Pull-request: #73
Signed-off-by: Pavel Kretov <firegurafiku@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-filesystem.c