Displaying 6 results from an estimated 6 matches for "md_setup_args".
2006 May 08
1
create_dev and raid
...en.
--- do_mounts_md.c 2006-05-08 01:51:02.000000000 -0500
+++ do_mounts_md.old 2006-05-08 02:07:35.000000000 -0500
@@ -222,7 +222,6 @@
char *devname;
mdu_disk_info_t dinfo;
char name[16];
+ struct stat st;
dev_minor = md_setup_args[ent].minor;
partitioned = md_setup_args[ent].partitioned;
@@ -231,8 +230,6 @@
snprintf(name, sizeof name,
"/dev/md%s%d", partitioned?"_d":"", dev_minor);
+ if (!stat(name,&st)) continue;
+...
2007 Aug 24
2
[git patch] klibc bzero, mount fixes + random stuff
...pplied to md=.\n");
return 0;
}
str1 = str;
- if (minor >= MAX_MD_DEVS) {
+ if (minor_num >= MAX_MD_DEVS) {
fprintf(stderr, "md: md=%d, Minor device number too high.\n",
- minor);
+ minor_num);
return 0;
}
for (ent = 0; ent < md_setup_ents; ent++)
- if (md_setup_args[ent].minor == minor &&
+ if (md_setup_args[ent].minor == minor_num &&
md_setup_args[ent].partitioned == partitioned) {
fprintf(stderr,
"md: md=%s%d, Specified more than once. "
"Replacing previous definition.\n",
- partitioned ? "d&q...
2006 May 10
1
[patch] skip existing md devices
...f-by: Aaron Griffin <aaron@archlinux.org>
--- a/usr/kinit/do_mounts_md.c 2006-05-08 12:59:42.000000000 -0500
+++ b/usr/kinit/do_mounts_md.c 2006-05-10 11:07:08.000000000 -0500
@@ -222,6 +222,7 @@
char *devname;
mdu_disk_info_t dinfo;
char name[16];
+ struct stat st;
dev_minor = md_setup_args[ent].minor;
partitioned = md_setup_args[ent].partitioned;
@@ -230,6 +231,9 @@
snprintf(name, sizeof name,
"/dev/md%s%d", partitioned?"_d":"", dev_minor);
+ if (stat(name,&st) == 0)
+ continue;
+
if (partitioned)
dev = makedev(mdp_major(), dev_...
2007 Dec 11
0
[git patch] kinit fix, header install cleanup
.../usr/kinit/do_mounts_md.c b/usr/kinit/do_mounts_md.c
index e5bbe21..c1c8b01 100644
--- a/usr/kinit/do_mounts_md.c
+++ b/usr/kinit/do_mounts_md.c
@@ -227,6 +227,7 @@ static void md_setup_drive(void)
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;
@@ -235,6 +236,9 @@ static void md_setup_drive(void)
snprintf(name, sizeof name,
"/dev/md%s%d", partitioned ? "_d" : "", dev_minor);
+ if (stat(name, &st_chk) == 0)
+ continue;
+
if (parti...
2011 Jul 08
4
[PATCH 0/4] usr/kinit checkpatch
Various coding style fixes checkpatch warns about.
The goal is not to be 100% checkpatch compliant,
but to have more consistent coding style.
As this is a trivial patch serie, will land in 24 hours in klibc git,
unless of course ml review hits a bugger.
Checked with size(3) that the generated kinit, fstype, ipconfig and
nfsmount are the same.
maximilian attems (4):
[klibc] ipconfig: reduce
2008 Mar 25
2
bunch of small fixes
.../usr/kinit/do_mounts_md.c b/usr/kinit/do_mounts_md.c
index e5bbe21..c1c8b01 100644
--- a/usr/kinit/do_mounts_md.c
+++ b/usr/kinit/do_mounts_md.c
@@ -227,6 +227,7 @@ static void md_setup_drive(void)
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;
@@ -235,6 +236,9 @@ static void md_setup_drive(void)
snprintf(name, sizeof name,
"/dev/md%s%d", partitioned ? "_d" : "", dev_minor);
+ if (stat(name, &st_chk) == 0)
+ continue;
+
if (parti...