]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
--update=resync did exactly the wrong thing for version1 metadata.
authorNeil Brown <neilb@suse.de>
Sun, 12 Nov 2006 22:12:09 +0000 (09:12 +1100)
committerNeil Brown <neilb@suse.de>
Sun, 12 Nov 2006 22:12:09 +0000 (09:12 +1100)
ChangeLog
super1.c

index 9d80e40d2cc66dbf81b55fbad838c1d0df21b0a2..81d51d326c9d1c129246de26b9438d92e7bebcf2 100644 (file)
--- 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
index 41cda20643f26aaa374a1aa33befe681065d7536..c8d63cf82e7f5ab29670961d8aca6bab59eb299a 100644 (file)
--- 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);