--- dmraid/1.0.0.rc9/include/dmraid/metadata.h.counts 2005-11-09 16:51:26.000000000 -0500
+++ dmraid/1.0.0.rc9/include/dmraid/metadata.h 2005-11-09 16:55:50.000000000 -0500
@@ -180,6 +180,8 @@
* for arbitrary block devices here.
*/
struct list_head devs;
+ unsigned int total_devs; /* The number of devices expected */
+ unsigned int found_devs; /* The number of devices found */
char *name; /* Name of the set. */
--- dmraid/1.0.0.rc9/lib/format/format.c.counts 2005-11-09 16:54:37.000000000 -0500
+++ dmraid/1.0.0.rc9/lib/format/format.c 2005-11-09 16:55:31.000000000 -0500
@@ -261,7 +261,9 @@
return;
sectors = total_sectors(lc, rs);
- devs = count_devs(lc, rs, ct_dev);
+ rs->total_devs = devs = count_devs(lc, rs, ct_dev);
list_for_each_entry(rd, &rs->devs, devs) {
unsigned int devices = f_devices(rd, f_devices_context);
+ /* FIXME: error if the metadatas aren't all the same? */
+ rs->found_devs = devices;