diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | config.c | 6 | ||||
-rw-r--r-- | mdadm.conf.5 | 2 |
3 files changed, 8 insertions, 1 deletions
@@ -3,6 +3,7 @@ Changes Prior to this release emails can be explicitly set. - Arrange that SparesMissing (which is similar in import to DegradedArray) generates an Email. + - Assume "DEVICE partitions" if no DEVICE line is given. Changes Prior to 2.4.1 release - Honour --write-mostly when adding to an array without persistent @@ -569,7 +569,11 @@ mddev_dev_t conf_get_devs(char *conffile) } load_conffile(conffile); - + + if (cdevlist == NULL) + /* default to 'partitions */ + dlist = load_partitions(); + for (cd=cdevlist; cd; cd=cd->next) { if (strcasecmp(cd->name, "partitions")==0 && dlist == NULL) dlist = load_partitions(); diff --git a/mdadm.conf.5 b/mdadm.conf.5 index f96476c4..56a5444c 100644 --- a/mdadm.conf.5 +++ b/mdadm.conf.5 @@ -61,6 +61,8 @@ but only the major and minor device numbers. It scans .I /dev to find the name that matches the numbers. +If no DEVICE line is present, then "DEVICE partitions" is assumed. + For example: .IP DEVICE /dev/hda* /dev/hdc* |