btrfs-progs: deal with invalid option combinations for btrfs-image
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>
Tue, 24 Jun 2014 03:16:12 +0000 (11:16 +0800)
committerDavid Sterba <dsterba@suse.cz>
Fri, 22 Aug 2014 12:43:10 +0000 (14:43 +0200)
commit08b0fdced1af19e6c10c94a74ec8fb9e64562def
treec880e2a65486cf357ec7b8dec30569de83aeba2d
parent729c0da10338caba5be7c22b842610223d661883
btrfs-progs: deal with invalid option combinations for btrfs-image

For btrfs-image,
dump  may not come with option '-o'
-r may not come with option '-c', '-s', '-w', dev_cnt != 1
-m may not come with dev_cnt < 2
All of the above should be regarded as invalid combinations,
and the usage will show up.

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