Re: [PATCH 2/4] btrfs-progs: deal with invalid option combinations for btrfs-image

2014-06-23 Thread Gui Hecheng
On Mon, 2014-06-23 at 16:12 +0200, David Sterba wrote: > On Thu, Jun 19, 2014 at 09:46:01AM +0800, Gui Hecheng wrote: > > For btrfs-image, > > dumpmay not come with option '-o' > > -r may not come with option '-c', '-s', '-w', dev_cnt != 1 > > -m may not come with dev_cnt

Re: [PATCH 2/4] btrfs-progs: deal with invalid option combinations for btrfs-image

2014-06-23 Thread David Sterba
On Thu, Jun 19, 2014 at 09:46:01AM +0800, Gui Hecheng wrote: > For btrfs-image, > dumpmay 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 combin

[PATCH 2/4] btrfs-progs: deal with invalid option combinations for btrfs-image

2014-06-18 Thread Gui Hecheng
For btrfs-image, dumpmay 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