btrfs-progs: add mount status check for btrfs-image
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>
Mon, 7 Jul 2014 01:56:51 +0000 (09:56 +0800)
committerDavid Sterba <dsterba@suse.cz>
Fri, 22 Aug 2014 13:07:03 +0000 (15:07 +0200)
commitf0884b5dc30c134bcb87a43342ca26d0773295ee
tree0282d7cb6a2ad324be8380644d0409ca03871e97
parentacf2652649e7338c89e164dba7c1409946dfb425
btrfs-progs: add mount status check for btrfs-image

When btrfs-image run on a mounted filesystem,
the undergoing fs operations may change what you have imaged a while ago.
In this case, give a warning to remind the user that he may not
get a consistent image he wants.

Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
[tweaked the message]
Signed-off-by: David Sterba <dsterba@suse.cz>
btrfs-image.c