linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jiri Slaby <jirislaby@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org,
	Torsten Kaiser <just.for.lkml@googlemail.com>,
	NeilBrown <neilb@suse.de>,
	mingo@redhat.com, linux-raid@vger.kernel.org
Subject: do_md_run returned -22 [Was: 2.6.24-rc8-mm1]
Date: Thu, 17 Jan 2008 16:23:30 +0100	[thread overview]
Message-ID: <478F72F2.6000707@gmail.com> (raw)
In-Reply-To: <20080117023514.9df393cf.akpm@linux-foundation.org>

On 01/17/2008 11:35 AM, Andrew Morton wrote:
> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.24-rc8/2.6.24-rc8-mm1/

still the same md issue (do_md_run returns -22=EINVAL) as in -rc6-mm1 reported 
by Thorsten here:
http://lkml.org/lkml/2007/12/27/45

Is there around any fix for this?

Having 0.90 raid 0 and 1, commenting this out helps:
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 8633bd4..9b8ecc8 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -3292,8 +3292,8 @@ static int do_md_run(mddev_t * mddev)
          * Analyze all RAID superblock(s)
          */
         if (!mddev->raid_disks) {
-               if (!mddev->persistent)
-                       return -EINVAL;
+/*             if (!mddev->persistent)
+                       return -EINVAL;*/
                 analyze_sbs(mddev);
         }

The persistency is marked even in analyze_sbs->validate_super, I guess?

       reply	other threads:[~2008-01-17 15:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20080117023514.9df393cf.akpm@linux-foundation.org>
2008-01-17 15:23 ` Jiri Slaby [this message]
2008-01-17 19:01   ` do_md_run returned -22 [Was: 2.6.24-rc8-mm1] Andrew Morton
2008-01-17 23:15     ` Neil Brown

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=478F72F2.6000707@gmail.com \
    --to=jirislaby@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=just.for.lkml@googlemail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-raid@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=neilb@suse.de \
    /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).