From c93ff841aa5bb6e180cfd042d1fced918d2a251e Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Fri, 30 Mar 2018 03:38:08 +0000 Subject: [PATCH] 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 --- usr.sbin/makefs/ffs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/makefs/ffs.c b/usr.sbin/makefs/ffs.c index 14d7714b8dbb..6a00c8727c36 100644 --- a/usr.sbin/makefs/ffs.c +++ b/usr.sbin/makefs/ffs.c @@ -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 */