From: nikita Date: Mon, 6 Nov 2006 16:53:46 +0000 (+0000) Subject: mkfs.lustre: remove upper limit on journal size: we want larger journal. X-Git-Tag: v1_8_0_110~486^2~226 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=2c272db5636ab9220344526ff33157590dad646d;p=fs%2Flustre-release.git mkfs.lustre: remove upper limit on journal size: we want larger journal. --- 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);