diff options
author | Doug Ledford <dledford@redhat.com> | 2008-10-29 14:23:49 -0400 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2008-10-29 14:23:49 -0400 |
commit | d3fbb3c40ab14707dde13cd297b7ac64d8c3109b (patch) | |
tree | 69274b5a1cd1aef2f7ccd12cdd34ad13d4e582f9 /mdopen.c | |
parent | fb26614d7a69d164f9e401f57389a1ca4e84258f (diff) | |
download | mdadm-d3fbb3c40ab14707dde13cd297b7ac64d8c3109b.tar.gz mdadm-d3fbb3c40ab14707dde13cd297b7ac64d8c3109b.tar.xz mdadm-d3fbb3c40ab14707dde13cd297b7ac64d8c3109b.zip |
Make incremental mode work with partitionable arrays
There were multiple problems with incremental mode and partitionable
arrays. Change the logic to pay more attention to what it finds in
mdadm.conf when setting up incremental arrays. Modify is_standard to
differentiate between a required partitioned name format and an optionally
partitioned named format. Modify open_mddev() to know about change to
is_standard. Make Incremental differentiate between create default
autof setting, command line autof setting, and array specific autof
setting, with order of preference being command line, conf file, default.
Disable the homehost test in the event there is no match for an array
so we can hotplug new arrays into a running machine without them having
to exist in mdadm.conf first (a random array number will be picked for
the hot plugged array). Honor any name from mdadm.conf that matches the
UUID of a device, not just standard names. Verify that the array name
as matched in mdadm.conf allows the requested mode of operation and reject
attempts to start non-partitionable arrays as partitioned and vice versa.
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'mdopen.c')
-rw-r--r-- | mdopen.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -147,8 +147,8 @@ int open_mddev(char *dev, int autof) return -1; } break; - case 3: /* create md, reject std>0 */ - if (std > 0) { + case 3: /* create md, reject std==1 */ + if (std == 1) { fprintf(stderr, Name ": that --auto option " "not compatable with device named %s\n", dev); return -1; |