Whamcloud - gitweb
LU-1888 mke2fs: fix handling of mmp_update_interval option 38/3938/3
authorGregoire Pichon <gregoire.pichon@bull.net>
Wed, 17 Oct 2012 14:57:32 +0000 (16:57 +0200)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 1 Dec 2012 19:47:20 +0000 (12:47 -0700)
Fix ext2fs_initialize() to ensure specified mmp_update_interval
option is taken into account at filesystem creation.

Signed-off-by: Gregoire Pichon <gregoire.pichon@bull.net>
Change-Id: I79a5dbb622117eb73bc27bef6f5a04504b45da54

lib/ext2fs/initialize.c

index 3567722..b0c15d2 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.