From: raz ben yehuda <raziebe@gmail.com>
To: linux raid <linux-raid@vger.kernel.org>, Neil Brown <neilb@suse.de>
Cc: yaronp@bitband.com
Subject: Subject : [ md PATCHE 5/6] : 1K *n chunks.
Date: Tue, 19 May 2009 02:08:00 +0300 [thread overview]
Message-ID: <1242688081.21201.19.camel@raz> (raw)
md to support 1K*n chunks only in the case of raid 0
Signed-off-by: raziebe@gmail.com
---
diff --git a/drivers/md/md.c b/drivers/md/md.c
index aab183e..75a3634 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -4011,9 +4011,9 @@ static int do_md_run(mddev_t * mddev)
return -EINVAL;
}
/*
- * raid0 chunk size has to divide by a page
+ * raid0 chunk size has to divide by a 1K
*/
- if (mddev->level == 0 && (chunk_size % PAGE_SIZE)) {
+ if (mddev->level == 0 && (chunk_size % 1024)) {
printk(KERN_ERR "chunk_size of %d not valid\n",
chunk_size);
return -EINVAL;
next reply other threads:[~2009-05-18 23:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-18 23:08 raz ben yehuda [this message]
2009-05-19 0:48 ` Subject : [ md PATCHE 5/6] : 1K *n chunks Neil Brown
2009-05-19 13:21 ` raz ben yehuda
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=1242688081.21201.19.camel@raz \
--to=raziebe@gmail.com \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
--cc=yaronp@bitband.com \
/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).