summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-11-13 09:12:09 +1100
committerNeil Brown <neilb@suse.de>2006-11-13 09:12:09 +1100
commit434b77559edef7bfd3e5f5366a2a00039baf7b48 (patch)
tree2cdf69f331470e801d83a7b758b9543a613b0be5
parentb7a708af6fb88e2ba1b0104ab40576798b3eae23 (diff)
downloadmdadm-434b77559edef7bfd3e5f5366a2a00039baf7b48.tar.gz
mdadm-434b77559edef7bfd3e5f5366a2a00039baf7b48.tar.xz
mdadm-434b77559edef7bfd3e5f5366a2a00039baf7b48.zip
--update=resync did exactly the wrong thing for version1 metadata.
-rw-r--r--ChangeLog2
-rw-r--r--super1.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9d80e40..81d51d3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
Changes Prior to this release
- Fixed UUID printing in "--detail --brief" for version1 metadata.
+ - --update=resync did exactly the wrong thing for version1 metadata.
+ It caused a resync to not happen, rather than to happen.
Changes Prior to 2.5.6 release
- Fix bug which meant "bitmap=xxx" in mdadm.conf was not handled
diff --git a/super1.c b/super1.c
index 41cda20..c8d63cf 100644
--- a/super1.c
+++ b/super1.c
@@ -527,7 +527,7 @@ static int update_super1(struct mdinfo *info, void *sbv, char *update,
}
if (strcmp(update, "resync") == 0) {
/* make sure resync happens */
- sb->resync_offset = ~0ULL;
+ sb->resync_offset = 0ULL;
}
if (strcmp(update, "uuid") == 0) {
memcpy(sb->set_uuid, info->uuid, 16);