linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Alan D. Brunelle" <Alan.Brunelle@hp.com>
To: Neil Brown <neilb@suse.de>
Cc: linux-raid@vger.kernel.org
Subject: Re: raid10: no raid0 support?
Date: Mon, 07 Jul 2008 08:46:49 -0400	[thread overview]
Message-ID: <48721039.7040706@hp.com> (raw)
In-Reply-To: <18521.59535.292223.722853@notabene.brown>

Neil Brown wrote:
> On Monday June 9, Alan.Brunelle@hp.com wrote:
>> Is there some reason why the MD RAID10 module does /not/ support a
>> "RAID0-like" configuration (-p n1)? The comments in drivers/md/raid10.c
>> seem to suggest it should:  "* If [near_copies and far_copies] are 1, we
>> get raid0." Yet the code specifically checks for ((near_copies *
>> far_copies) > 1).
> 
> You mean:
> 	if ((nc*fc) <2 || (nc*fc) > mddev->raid_disks ||
> 	    (mddev->layout >> 17)) {
> 		printk(KERN_ERR "raid10: %s: unsupported raid10 layout: 0x%8x\n",
> 		       mdname(mddev), mddev->layout);
> 		goto out;
> 	}
> 
> Yes, I guess that could be "nc*fc < 1".  Everything else should still
> work.
> 
> I cannot think of a good reason for making a raid10 with no redundancy though.
> 
>> Just curious, as it seems interesting that one could support RAID0,
>> RAID1 /and/ RAID10 all w/ one RAID module.
> 
> Interesting: yes.
> Useful:  not sure.
> 
> NeilBrown
> 

Sorry for the tardy response (on holiday), just thinking about the
algorithm's application to another problem where having one piece of
code supporting all three RAID modes is goodness...

Thanks,
Alan

      reply	other threads:[~2008-07-07 12:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-09 20:48 raid10: no raid0 support? Alan D. Brunelle
2008-06-19  5:03 ` Neil Brown
2008-07-07 12:46   ` Alan D. Brunelle [this message]

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=48721039.7040706@hp.com \
    --to=alan.brunelle@hp.com \
    --cc=linux-raid@vger.kernel.org \
    --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).