From 0fd5c350e55590d2adbbb6ca16ec86391abda14b Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 15 May 2008 16:48:33 +1000 Subject: set resync_start in Incremental_container From: Dan Williams Metadata handlers set mdinfo.resync_start depending on the state of the array. By default mdadm assumes the array is dirty and needs a full resync. Signed-off-by: Dan Williams --- sysfs.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sysfs.c') diff --git a/sysfs.c b/sysfs.c index 8b5a6ff..f0e9512 100644 --- a/sysfs.c +++ b/sysfs.c @@ -325,6 +325,7 @@ int sysfs_set_array(struct mdinfo *sra, rv |= sysfs_set_num(sra, NULL, "chunk_size", info->array.chunk_size); rv |= sysfs_set_num(sra, NULL, "layout", info->array.layout); rv |= sysfs_set_num(sra, NULL, "component_size", info->component_size); + rv |= sysfs_set_num(sra, NULL, "resync_start", info->resync_start); sra->array = info->array; return rv; } -- cgit