diff options
author | NeilBrown <neilb@suse.de> | 2013-09-15 01:14:25 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-09-15 01:14:25 +0200 |
commit | 9eaf410feda4ad112d3cee0c0b5b4edf05fc63bf (patch) | |
tree | be97057a4d8f7397af96383fdc20d602b18f89f9 /mdadm.c | |
parent | Make -IRs and --run work properly for containers. (diff) | |
download | mdadm-9eaf410feda4ad112d3cee0c0b5b4edf05fc63bf.tar.xz mdadm-9eaf410feda4ad112d3cee0c0b5b4edf05fc63bf.zip |
Give error if --incremental --scan also has a device name given.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.c')
-rw-r--r-- | mdadm.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1527,6 +1527,11 @@ int main(int argc, char *argv[]) RebuildMap(); } if (c.scan) { + rv = 1; + if (devlist) { + pr_err("In --incremental mode, a device cannot be given with --scan.\n"); + break; + } if (c.runstop <= 0) { pr_err("--incremental --scan meaningless without --run.\n"); break; |