Re: Ubuntu Patches [13/16]

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

 






Fix isw raid0 incorrect  sectors calculation, thanks to Valentin Pavlyuchenko
--- a/1.0.0.rc16/lib/format/ataraid/isw.c
+++ b/1.0.0.rc16/lib/format/ataraid/isw.c
@@ -776,7 +776,9 @@ _create_rd(struct lib_context *lc,
 	r->di = rd->di;
 	r->fmt = rd->fmt;
 	r->offset = dev->vol.map[0].pba_of_lba0;
-	if ((r->sectors = dev->vol.map[0].blocks_per_member - RAID_DS_JOURNAL))
+	//fix bugs on ICH10R
+	//if ((r->sectors = dev->vol.map[0].blocks_per_member - RAID_DS_JOURNAL))
+	if ((r->sectors = dev->vol.map[0].blocks_per_member))
 		goto out;
 
 	log_zero_sectors(lc, rd->di->path, handler);



_______________________________________________
Ataraid-list mailing list
Ataraid-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/ataraid-list

[Index of Archives]     [Linux RAID]     [Linux Device Mapper]     [Linux IDE]     [Linux SCSI]     [Kernel]     [Linux Books]     [Linux Admin]     [GFS]     [RPM]     [Yosemite Campgrounds]     [AMD 64]

  Powered by Linux