diff options
author | NeilBrown <neilb@suse.de> | 2008-11-04 20:50:38 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-11-04 20:50:38 +1100 |
commit | 1771a6e214755311530a7099374df53d84e06a82 (patch) | |
tree | f33736a4858dd4641521cf87d90e4f681fca6400 /config.c | |
parent | fe056d1fb0b1d08c614f574cceaa640abc382544 (diff) |
config: Support container=uuid as alternative to container=/dev/name in mdadm.conf
When mdadm.conf is automatically generated, we might not know a
suitable /dev/name. But we do know the uuid of the container.
So allow that as an option.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -522,7 +522,8 @@ void arrayline(char *line) /* subarray within a container */ mis.member = strdup(w+7); } else if (strncasecmp(w, "container=", 10) == 0) { - /* the container holding this subarray */ + /* the container holding this subarray. Either a device name + * or a uuid */ mis.container = strdup(w+10); } else { fprintf(stderr, Name ": unrecognised word on ARRAY line: %s\n", |