diff options
author | Neil Brown <neilb@suse.de> | 2005-12-05 05:52:50 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2005-12-05 05:52:50 +0000 |
commit | 8b0dabea0762e2cd786c1539845823ecd914657a (patch) | |
tree | 0a6b3a8c089910f963fa180c47996343fdef43e9 /Examine.c | |
parent | d9d4e4698f11b937c42f1c983aca57fd50038a73 (diff) | |
download | mdadm-8b0dabea0762e2cd786c1539845823ecd914657a.tar.gz |
Allow scanning of devices listed in /proc/partitions independant of /dev
If a device found in /proc/partitions isn't listed in /dev, then
mknod a temporary name and open that.
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'Examine.c')
-rw-r--r-- | Examine.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -51,7 +51,7 @@ int Examine(mddev_dev_t devlist, int brief, int scan, int SparcAdjust, struct su * utime, state etc * * If (brief) gather devices for same array and just print a mdadm.conf line including devices= - * if devlist==NULL, use conf_get_devs( + * if devlist==NULL, use conf_get_devs() */ int fd; void *super = NULL; @@ -71,7 +71,7 @@ int Examine(mddev_dev_t devlist, int brief, int scan, int SparcAdjust, struct su for (; devlist ; devlist=devlist->next) { struct supertype *st = forcest; - fd = open(devlist->devname, O_RDONLY); + fd = dev_open(devlist->devname, O_RDONLY); if (fd < 0) { if (!scan) fprintf(stderr,Name ": cannot open %s: %s\n", |