Re: Drive fails & raid6 array is not self rebuild .

2 messages, 2 authors, 2005-09-10 · open the first message on its own page

Re: Drive fails & raid6 array is not self rebuild .

From: Neil Brown <hidden>
Date: 2005-09-09 21:49:08

On Friday September 9, babydr@baby-dragons.com wrote:
 	Hello Neil ,  I patched all were successful .  But after a
 	make clean ; make
 	I get ...	Tia ,  JimL
..snip...
gcc -Wall -Werror -Wstrict-prototypes -DCONFFILE=\"/etc/mdadm.conf\" -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\"   -c -o Assemble.o Assemble.c
Assemble.c: In function `Assemble':
Assemble.c:323: error: `nextspare' undeclared (first use in this function)
Assemble.c:323: error: (Each undeclared identifier is reported only once
Assemble.c:323: error: for each function it appears in.)
make: *** [Assemble.o] Error 1
That's odd, as the patch contained:
--- ./Assemble.c~current~	2005-09-05 10:55:01.000000000 +1000
+++ ./Assemble.c	2005-09-09 16:24:50.000000000 +1000
@@ -119,6 +119,7 @@ int Assemble(struct supertype *st, char 
 	struct mdinfo info;
 	struct mddev_ident_s ident2;
 	char *avail;
+	int nextspare = 0;
 	
 	vers = md_get_version(mdfd);
 	if (vers <= 0) {

Maybe add that bit in by hand??

NeilBrown

Re: Drive fails & raid6 array is not self rebuild .

From: Mr. James W. Laferriere <hidden>
Date: 2005-09-10 00:54:06

 	Hello Neil ,

On Sat, 10 Sep 2005, Neil Brown wrote:
quoted hunk
On Friday September 9, babydr@baby-dragons.com wrote:
quoted
 	Hello Neil ,  I patched all were successful .  But after a
 	make clean ; make
 	I get ...	Tia ,  JimL
..snip...
gcc -Wall -Werror -Wstrict-prototypes -DCONFFILE=\"/etc/mdadm.conf\" -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\"   -c -o Assemble.o Assemble.c
Assemble.c: In function `Assemble':
Assemble.c:323: error: `nextspare' undeclared (first use in this function)
Assemble.c:323: error: (Each undeclared identifier is reported only once
Assemble.c:323: error: for each function it appears in.)
make: *** [Assemble.o] Error 1
That's odd, as the patch contained:
--- ./Assemble.c~current~	2005-09-05 10:55:01.000000000 +1000
+++ ./Assemble.c	2005-09-09 16:24:50.000000000 +1000
@@ -119,6 +119,7 @@ int Assemble(struct supertype *st, char
	struct mdinfo info;
	struct mddev_ident_s ident2;
	char *avail;
+	int nextspare = 0;

	vers = md_get_version(mdfd);
	if (vers <= 0) {
 	What was missing from my 2.0 sources was the 'char *avail;'
 	and patching failed on that hunk ,  Which totally missed .
 	So I hand entered as you suggested the above bits .

 	Now it failes on a Warning (???) .
 	Never heard of failures on warnings before .

gcc -Wall -Werror -Wstrict-prototypes -DCONFFILE=\"/etc/mdadm.conf\" -ggdb -DSendmail=\""/usr/sbin/sendmail -t"\"   -c -o Assemble.o Assemble.c
Assemble.c: In function `Assemble':
Assemble.c:121: warning: unused variable `avail'
make: *** [Assemble.o] Error 1

 	Would you please cut a source set to the kernel site >
 	Say as version 2.0a so I can see the diffs against the
 	sources I have ?  Tia ,  JimL

-- 
+------------------------------------------------------------------+
| James   W.   Laferriere | System    Techniques | Give me VMS     |
| Network        Engineer | 3542 Broken Yoke Dr. |  Give me Linux  |
| babydr@baby-dragons.com | Billings , MT. 59105 |   only  on  AXP |
+------------------------------------------------------------------+
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help