From: Gregoire Pichon Date: Wed, 17 Oct 2012 14:57:32 +0000 (+0200) Subject: mke2fs: fix handling of mmp_update_interval option X-Git-Tag: v1.42.7~78 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=1564150d3111f95317073ebc853b79aa5307cff5;p=tools%2Fe2fsprogs.git mke2fs: fix handling of mmp_update_interval option 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 Signed-off-by: Theodore Ts'o --- diff --git a/lib/ext2fs/initialize.c b/lib/ext2fs/initialize.c index 3567722..b0c15d2 100644 --- a/lib/ext2fs/initialize.c +++ b/lib/ext2fs/initialize.c @@ -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.