From: yury Date: Wed, 8 Nov 2006 15:33:17 +0000 (+0000) Subject: - remove mkfs hjournal upper limit again after mk2fs is patched. X-Git-Tag: v1_8_0_110~486^2~204 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=dd5d965c9a7068e641aba40f3872104be593e38d;p=fs%2Flustre-release.git - remove mkfs hjournal upper limit again after mk2fs is patched. --- diff --git a/lustre/utils/mkfs_lustre.c b/lustre/utils/mkfs_lustre.c index c4b937c..50a649c 100644 --- a/lustre/utils/mkfs_lustre.c +++ b/lustre/utils/mkfs_lustre.c @@ -448,13 +448,9 @@ int make_lustre_backfs(struct mkfs_opts *mop) /* Journal size in MB */ if (strstr(mop->mo_mkfsopts, "-J") == NULL) { /* Choose our own default journal size */ - long journal_sz = 0, max_sz; + long journal_sz = 0; if (device_sz > 1024 * 1024) /* 1GB */ journal_sz = (device_sz / 102400) * 4; - /* man mkfs.ext3 */ - max_sz = (102400 * L_BLOCK_SIZE) >> 20; /* 400MB */ - if (journal_sz > max_sz) - journal_sz = max_sz; if (journal_sz) { sprintf(buf, " -J size=%ld", journal_sz); strcat(mop->mo_mkfsopts, buf);