blob: 237a1db05473f9c69bb0fc25bdfb00c52241dcc3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- a/usr/kinit/do_mounts_md.c 2006-07-31 21:16:01.000000000 -0500
+++ b/usr/kinit/do_mounts_md.c 2006-07-31 21:18:46.000000000 -0500
@@ -228,6 +228,7 @@
char *devname;
mdu_disk_info_t dinfo;
char name[16];
+ struct stat st_chk;
dev_minor = md_setup_args[ent].minor;
partitioned = md_setup_args[ent].partitioned;
@@ -236,6 +237,9 @@
snprintf(name, sizeof name,
"/dev/md%s%d", partitioned ? "_d" : "", dev_minor);
+ if (stat(name, &st_chk) == 0)
+ continue;
+
if (partitioned)
dev = makedev(mdp_major(), dev_minor << MdpMinorShift);
else
|