From: Kenji Miyake <kenji@miyake.org>
To: linux-raid@vger.kernel.org
Subject: raidstart program device detect problem
Date: Wed, 01 Dec 2004 20:10:25 +0900 [thread overview]
Message-ID: <20041201201025B.kenji@miyake.org> (raw)
Hi,
I found some problem in raidtools2.
raiddevice md1 cannot start if raiddevice md10 was setup and running.
raidstart program check running device partially.
--- 1/raidtools2-0.90.20010914/raid_io.c Wed Dec 1 19:30:26 2004
+++ raidtools2-0.90.20010914/raid_io.c Wed Nov 24 19:41:42 2004
@@ -528,12 +528,14 @@
if ((ch = strstr(p->md_name, "/md")) == NULL)
return 0;
strcpy(buffer, ch+1);
+ strcat(buffer, " : active");
if ((fp = fopen("/proc/mdstat", "r")) == NULL)
return 0;
while (1) {
if ((fgets(line, MAX_LINE_LENGTH, fp)) == NULL)
break;
- if (strstr(line, buffer) && !strstr(line, "inactive")) {
+ if (strstr(line, buffer))
+ {
fprintf(stderr, "%s: active -- run raidstop\n", p->md_name);
fclose(fp);
return 1;
next reply other threads:[~2004-12-01 11:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-01 11:10 Kenji Miyake [this message]
2004-12-01 17:23 ` raidstart program device detect problem Guy
2004-12-01 17:31 ` Gordon Henderson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041201201025B.kenji@miyake.org \
--to=kenji@miyake.org \
--cc=linux-raid@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).