[klibc] create_dev and raid

Aaron Griffin aaronmgriffin at gmail.com
Mon May 8 00:33:01 PDT 2006


On 5/8/06, maximilian attems <maks at sternwelten.at> wrote:
> minor nitpicking

Yes ignore me... it's late, I munged the actual patch:
--- do_mounts_md.c	2006-05-01 17:26:58.000000000 -0500
+++ do_mounts_md.c.new	2006-05-08 02:30:14.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))
+			continue;
+
 		if (partitioned)
 			dev = makedev(mdp_major(), dev_minor << MdpMinorShift);
 		else

> use tabs for indentation.
Age old debate.  I typically don't pay attention to the real
indentation, assuming some sort of modeline is set somewhere.  I have
'et' on by default, adjusted for this patch



More information about the klibc mailing list