[Dmraid-debian-commits] [SCM] Maintenance of the dmraid package branch, master, updated. debian/1.0.0.rc15-6-2-g3011c19
Giuseppe Iuculano
giuseppe at iuculano.it
Sun Apr 19 10:57:47 UTC 2009
The following commit has been merged in the master branch:
commit 3011c19ddc066efe1ae8331f6b5f183af55e1911
Author: Giuseppe Iuculano <giuseppe at iuculano.it>
Date: Sun Apr 19 12:50:06 2009 +0200
debian/patches/16_fix_isw_sectors_calculation.patch: Fix isw raid0 incorrect sectors calculation, thanks to Valentin Pavlyuchenko (Closes: #524637) (LP: #337284)
Forwarded[1] to ataraid ml this issue, and asked what is the purpose of this change in rc15
[1]https://www.redhat.com/archives/ataraid-list/2009-April/msg00013.html
diff --git a/debian/patches/16_fix_isw_sectors_calculation.patch b/debian/patches/16_fix_isw_sectors_calculation.patch
new file mode 100644
index 0000000..485dddf
--- /dev/null
+++ b/debian/patches/16_fix_isw_sectors_calculation.patch
@@ -0,0 +1,14 @@
+Fix for #524637. Do not subtract RAID_DS_JOURNAL
+--- a/1.0.0.rc15/lib/format/ataraid/isw.c
++++ b/1.0.0.rc15/lib/format/ataraid/isw.c
+@@ -674,7 +674,9 @@ _create_rd(struct lib_context *lc,
+ r->di = rd->di;
+ r->fmt = rd->fmt;
+ r->offset = dev->vol.map.pba_of_lba0;
+- if ((r->sectors = dev->vol.map.blocks_per_member - RAID_DS_JOURNAL))
++ /* Fix for #524637. Do not subtract RAID_DS_JOURNAL
++ if ((r->sectors = dev->vol.map.blocks_per_member - RAID_DS_JOURNAL)) */
++ if ((r->sectors = dev->vol.map.blocks_per_member))
+ goto out;
+
+ log_zero_sectors(lc, rd->di->path, handler);
diff --git a/debian/patches/series b/debian/patches/series
index 8d13e17..e205a81 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -12,3 +12,4 @@
12_support_virtio_devices.patch
13_rm_partitions.patch
14_isw-serial-fix.patch
+16_fix_isw_sectors_calculation.patch
--
Maintenance of the dmraid package
More information about the Dmraid-debian-commits
mailing list