svn commit: r344864 - stable/11/sbin/tunefs
Kirk McKusick
mckusick at FreeBSD.org
Thu Mar 7 00:04:14 UTC 2019
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);
More information about the svn-src-stable
mailing list