diff options
author | Neil Brown <neilb@suse.de> | 2006-02-06 04:18:12 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-02-06 04:18:12 +0000 |
commit | 1e0d770c0f2e78bb334cd75d3d71c8c7d3b8f621 (patch) | |
tree | 03546c5e2d7b63bc1b1c76954e5fea9b127f34bd /mdadm.c | |
parent | a92f6acc43a37b7fcea9d968b6e62035ca73a100 (diff) | |
download | mdadm-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.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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): |