]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
mke2fs: fix handling of mmp_update_interval option
authorGregoire Pichon <gregoire.pichon@bull.net>
Wed, 17 Oct 2012 14:57:32 +0000 (16:57 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 16 Dec 2012 03:36:37 +0000 (22:36 -0500)
Make sure the s_mmp_update_interval super block field is set
from the file system parameters block which is passed into the
ext2fs_initialize() function.

Addresses-Lustre-Bug: LU-1888

Signed-off-by: Gregoire Pichon <gregoire.pichon@bull.net>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/initialize.c

index 35677229adfe963601eea62130a683854f72e459..b0c15d2d103b419ae844dcaf7eb1341a520558b3 100644 (file)
@@ -241,6 +241,8 @@ errcode_t ext2fs_initialize(const char *name, int flags,
                goto cleanup;
        }
 
+       set_field(s_mmp_update_interval, 0);
+
        /*
         * If we're creating an external journal device, we don't need
         * to bother with the rest.