[Dmraid-debian-commits] [SCM] Maintenance of the dmraid package branch, master, updated. debian/1.0.0.rc16-1-2-g8418d6b
Giuseppe Iuculano
iuculano at debian.org
Thu Nov 26 10:36:36 UTC 2009
The following commit has been merged in the master branch:
commit 0819a8273364aa442aade22355832678edd6d732
Author: Giuseppe Iuculano <iuculano at debian.org>
Date: Thu Nov 26 09:03:53 2009 +0100
debian/patches/18_pdc_raid10_failure..patch: fix pdc metadata format handler to report the proper number of devices in a subset
diff --git a/debian/patches/18_pdc_raid10_failure..patch b/debian/patches/18_pdc_raid10_failure..patch
new file mode 100644
index 0000000..54cd7be
--- /dev/null
+++ b/debian/patches/18_pdc_raid10_failure..patch
@@ -0,0 +1,14 @@
+fix pdc metadata format handler to report the proper number of devices in a subset
+--- a/1.0.0.rc16/lib/format/ataraid/pdc.c
++++ b/1.0.0.rc16/lib/format/ataraid/pdc.c
+@@ -490,7 +490,9 @@ devices(struct raid_dev *rd, void *conte
+ if (context && pdc->raid.type != PDC_T_SPAN)
+ *((uint64_t *) context) += rd->sectors;
+
+- return pdc->raid.total_disks;
++ return is_raid10(pdc) ?
++ pdc->raid.total_disks / 2 :
++ pdc->raid.total_disks;
+ }
+
+ static int
diff --git a/debian/patches/series b/debian/patches/series
index 1109ef1..ac317a8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@
12_support_virtio_devices.patch
17_isw-probe-hpa.patch
15_activate_multiple_raid_sets.patch
+18_pdc_raid10_failure..patch
--
Maintenance of the dmraid package
More information about the Dmraid-debian-commits
mailing list