From 1771a6e214755311530a7099374df53d84e06a82 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Tue, 4 Nov 2008 20:50:38 +1100 Subject: 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 --- config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config.c') diff --git a/config.c b/config.c index f08a9f07..9eb8197a 100644 --- a/config.c +++ b/config.c @@ -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", -- cgit v1.2.3