newfs(8): Fix a bug in initialization of sblock.fs_maxbsize .

Fixes:		1c85e6a35d (SVN r98542)
Pull Request:	https://github.com/freebsd/freebsd-src/pull/587
MFC after:	1 week
Sponsored by:	NVIDIA Networking
This commit is contained in:
Wuyang Chung 2022-03-08 21:52:17 +08:00 committed by Hans Petter Selasky
parent 2eee44bd5e
commit c5f549c1e0

View File

@ -225,7 +225,7 @@ mkfs(struct partition *pp, char *fsys)
if (maxbsize < bsize || !POWEROF2(maxbsize)) {
sblock.fs_maxbsize = sblock.fs_bsize;
printf("Extent size set to %d\n", sblock.fs_maxbsize);
} else if (sblock.fs_maxbsize > FS_MAXCONTIG * sblock.fs_bsize) {
} else if (maxbsize > FS_MAXCONTIG * sblock.fs_bsize) {
sblock.fs_maxbsize = FS_MAXCONTIG * sblock.fs_bsize;
printf("Extent size reduced to %d\n", sblock.fs_maxbsize);
} else {