summaryrefslogtreecommitdiffstats
path: root/mdadm.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-02-06 04:18:12 +0000
committerNeil Brown <neilb@suse.de>2006-02-06 04:18:12 +0000
commit1e0d770c0f2e78bb334cd75d3d71c8c7d3b8f621 (patch)
tree03546c5e2d7b63bc1b1c76954e5fea9b127f34bd /mdadm.c
parenta92f6acc43a37b7fcea9d968b6e62035ca73a100 (diff)
downloadmdadm-1e0d770c0f2e78bb334cd75d3d71c8c7d3b8f621.tar.gz
mdadm-1e0d770c0f2e78bb334cd75d3d71c8c7d3b8f621.tar.xz
mdadm-1e0d770c0f2e78bb334cd75d3d71c8c7d3b8f621.zip
Release some compile fixes.
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'mdadm.c')
-rw-r--r--mdadm.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/mdadm.c b/mdadm.c
index 7b6c3d0..1c9388c 100644
--- a/mdadm.c
+++ b/mdadm.c
@@ -772,8 +772,15 @@ int main(int argc, char *argv[])
case O(GROW,'b'):
case O(BUILD,'b'):
case O(CREATE,'b'): /* here we create the bitmap */
- bitmap_file = optarg;
- continue;
+ if (strcmp(optarg, "internal")== 0 ||
+ strcmp(optarg, "none")== 0 ||
+ strchr(optarg, '/') != NULL) {
+ bitmap_file = optarg;
+ continue;
+ }
+ /* probable typo */
+ fprintf(stderr, Name ": bitmap file must contain a '/', or be 'internal', or 'none'\n");
+ exit(2);
case O(GROW,4):
case O(BUILD,4):