Subject : [ md PATCHE 5/6] : 1K *n chunks.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



md to support 1K*n chunks only in the case of raid 0
Signed-off-by: raziebe@xxxxxxxxx
---
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;


--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux