Date: Thu, 7 Mar 2019 00:04:13 +0000 (UTC) From: Kirk McKusick <mckusick@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r344864 - stable/11/sbin/tunefs Message-ID: <201903070004.x2704DkT091345@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mckusick Date: Thu Mar 7 00:04:13 2019 New Revision: 344864 URL: https://svnweb.freebsd.org/changeset/base/344864 Log: MFC of 344731 Roundup tunefs -S logsize to filesystem block size Sponsored by: Netflix Modified: stable/11/sbin/tunefs/tunefs.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sbin/tunefs/tunefs.c ============================================================================== --- stable/11/sbin/tunefs/tunefs.c Thu Mar 7 00:02:25 2019 (r344863) +++ stable/11/sbin/tunefs/tunefs.c Thu Mar 7 00:04:13 2019 (r344864) @@ -976,9 +976,9 @@ journal_alloc(int64_t size) if (size / sblock.fs_fsize > sblock.fs_fpg) size = sblock.fs_fpg * sblock.fs_fsize; size = MAX(SUJ_MIN, size); - /* fsck does not support fragments in journal files. */ - size = roundup(size, sblock.fs_bsize); } + /* fsck does not support fragments in journal files. */ + size = roundup(size, sblock.fs_bsize); resid = blocks = size / sblock.fs_bsize; if (sblock.fs_cstotal.cs_nbfree < blocks) { warn("Insufficient free space for %jd byte journal", size);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903070004.x2704DkT091345>