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:
parent
2eee44bd5e
commit
c5f549c1e0
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user