summaryrefslogtreecommitdiffstats
path: root/super-ddf.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2008-06-12 10:13:23 +1000
committerNeil Brown <neilb@suse.de>2008-06-12 10:13:23 +1000
commit2e735d198233a67f305862f72e3a5d0f0c3c548c (patch)
tree8dad807f9ed77f623ad5cf70900eab23054a552e /super-ddf.c
parentb22806772072a3c9a3a7fa406fb573294cb4388b (diff)
downloadmdadm-2e735d198233a67f305862f72e3a5d0f0c3c548c.tar.gz
mdadm-2e735d198233a67f305862f72e3a5d0f0c3c548c.tar.xz
mdadm-2e735d198233a67f305862f72e3a5d0f0c3c548c.zip
Allow passing metadata update to the monitor.
Code in manager can now just call queue_metadata_update with a (freeable) buf holding the update, and it will get passed to the monitor and written out.
Diffstat (limited to 'super-ddf.c')
-rw-r--r--super-ddf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/super-ddf.c b/super-ddf.c
index d912696..2918b71 100644
--- a/super-ddf.c
+++ b/super-ddf.c
@@ -2666,7 +2666,7 @@ static void ddf_set_disk(struct active_array *a, int n, int state)
fprintf(stderr, "ddf: set_disk %d\n", n);
}
-static void ddf_sync_metadata(struct active_array *a)
+static void ddf_sync_metadata(struct supertype *st)
{
/*
@@ -2676,7 +2676,7 @@ static void ddf_sync_metadata(struct active_array *a)
* but ddf is sufficiently weird that it probably always
* changes global data ....
*/
- __write_init_super_ddf(a->container, 0);
+ __write_init_super_ddf(st, 0);
fprintf(stderr, "ddf: sync_metadata\n");
}