Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Mar 2019 00:02:26 +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-12@freebsd.org
Subject:   svn commit: r344863 - stable/12/sbin/tunefs
Message-ID:  <201903070002.x2702QmT091210@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mckusick
Date: Thu Mar  7 00:02:25 2019
New Revision: 344863
URL: https://svnweb.freebsd.org/changeset/base/344863

Log:
  MFC of 344731
  
  Roundup tunefs -S logsize to filesystem block size
  
  Sponsored by: Netflix

Modified:
  stable/12/sbin/tunefs/tunefs.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sbin/tunefs/tunefs.c
==============================================================================
--- stable/12/sbin/tunefs/tunefs.c	Thu Mar  7 00:01:28 2019	(r344862)
+++ stable/12/sbin/tunefs/tunefs.c	Thu Mar  7 00:02:25 2019	(r344863)
@@ -989,9 +989,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?201903070002.x2702QmT091210>