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

[PATCH] dmraid: Align table size to chunksize



Hi all,

For some reason the size of a striped table in dmraid will be aligned to the chunksize only if F_MAXIMIZE is set. However, I couldn't find any instance where F_MAXIMIZE is indeed set. And device-mapper doesn't like it anyway if the table size is not a multiple of the chunk size. The attached patch just removes the reference to F_MAXIMIZE and have the table size always a multiple of the chunk size.

Please apply.

Cheers,

Hannes
--
Dr. Hannes Reinecke			hare suse de
SuSE Linux Products GmbH		S390 & zSeries
Maxfeldstraße 5				+49 911 74053 688
90409 Nürnberg				http://www.suse.de
diff -pur dmraid/1.0.0.rc10.orig/lib/activate/activate.c dmraid/1.0.0.rc10/lib/activate/activate.c
--- dmraid/1.0.0.rc10.orig/lib/activate/activate.c	2006-02-17 20:09:31.000000000 +0100
+++ dmraid/1.0.0.rc10/lib/activate/activate.c	2006-08-09 13:42:09.000000000 +0200
@@ -256,8 +256,7 @@ static int dm_raid0(struct lib_context *
 			goto err;
 
 		if (!_dm_raid0_bol(lc, table, 
-				   F_MAXIMIZE(rs) ?
-				   round_down(min, rs->stride) : min, last_min,
+				   round_down(min, rs->stride), last_min,
 			           _dm_raid0_devs(lc, rs, last_min),
 				   rs->stride) ||
 		    !_dm_raid0_eol(lc, table, rs, &stripes, last_min))

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