svn commit: r331758 - head/usr.sbin/makefs

Ed Maste emaste at FreeBSD.org
Fri Mar 30 03:38:09 UTC 2018


Author: emaste
Date: Fri Mar 30 03:38:08 2018
New Revision: 331758
URL: https://svnweb.freebsd.org/changeset/base/331758

Log:
  makefs: sync fragment and block size with newfs
  
  r222319 in newfs raised the default blocksize for UFS/FFS filesystems
  from 16K to 32K and the default fragment size from 2K to 4K, with a
  rationale that most disks were now running with 4K sectors.
  
  MFC after:	2 weeks
  Relnotes:	Yes
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/usr.sbin/makefs/ffs.c

Modified: head/usr.sbin/makefs/ffs.c
==============================================================================
--- head/usr.sbin/makefs/ffs.c	Fri Mar 30 02:25:12 2018	(r331757)
+++ head/usr.sbin/makefs/ffs.c	Fri Mar 30 03:38:08 2018	(r331758)
@@ -115,8 +115,8 @@ __FBSDID("$FreeBSD$");
 /*
  * Various file system defaults (cribbed from newfs(8)).
  */
-#define	DFL_FRAGSIZE		1024		/* fragment size */
-#define	DFL_BLKSIZE		8192		/* block size */
+#define	DFL_FRAGSIZE		4096		/* fragment size */
+#define	DFL_BLKSIZE		32768		/* block size */
 #define	DFL_SECSIZE		512		/* sector size */
 #define	DFL_CYLSPERGROUP	65536		/* cylinders per group */
 #define	DFL_FRAGSPERINODE	4		/* fragments per inode */


More information about the svn-src-head mailing list