Bound the size of the superblock to SBLOCKSIZE.
Submitted by: BOUWSMA Beery <freebsd-misuser@netscum.dyndns.dk> Sponsored by: DARPA & NAI Labs.
This commit is contained in:
parent
1b7e3dafdf
commit
ecfc865a4b
@ -382,6 +382,8 @@ mkfs(struct partition *pp, char *fsys)
|
||||
if (fscs == NULL)
|
||||
errx(31, "calloc failed");
|
||||
sblock.fs_sbsize = fragroundup(&sblock, sizeof(struct fs));
|
||||
if (sblock.fs_sbsize > SBLOCKSIZE)
|
||||
sblock.fs_sbsize = SBLOCKSIZE;
|
||||
sblock.fs_minfree = minfree;
|
||||
sblock.fs_maxbpg = maxbpg;
|
||||
sblock.fs_optim = opt;
|
||||
|
Loading…
x
Reference in New Issue
Block a user