From 48f7b27ab48fc3ea0fa7d965604adbb275eb1c95 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Mon, 4 Apr 2005 05:16:16 +0000 Subject: Document new --auto behaviour Signed-off-by: Neil Brown --- mdopen.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mdopen.c') diff --git a/mdopen.c b/mdopen.c index 1ba5201..98c6fdb 100644 --- a/mdopen.c +++ b/mdopen.c @@ -92,6 +92,10 @@ int open_mddev(char *dev, int autof) /* autof is set, so we need to check that the name is ok, * and possibly create one if not */ + if (autof == -2 && !is_standard(dev, NULL)) { + fprintf(stderr, Name ": --auto=yes requires a 'standard' md device name, not %s\n", dev); + return -1; + } stb.st_mode = 0; if (lstat(dev, &stb)==0 && ! S_ISBLK(stb.st_mode)) { fprintf(stderr, Name ": %s is not a block device.\n", -- cgit