blob: 9887a35093e2eb150203bd3a679534116661d9f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
Fix isw raid0 incorrect sectors calculation, thanks to Valentin Pavlyuchenko
--- dmraid/lib/format/ataraid/isw.c
+++ dmraid/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);
|