mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
`dev_bsize' must be reset to 1 before the bread() or
quotacheck -a will fail after the first partition (because
dev_bsize is 512 and is messes up the superblock read of the second
partition)
Submitted by: dillon@best.com (Mattew Dillon)
This commit is contained in:
parent
e78bad2371
commit
78f934546c
1 changed files with 1 additions and 0 deletions
|
|
@ -260,6 +260,7 @@ chkquota(fsname, mntpt, qnp)
|
|||
(void)printf(" quotas for %s (%s)\n", fsname, mntpt);
|
||||
}
|
||||
sync();
|
||||
dev_bsize = 1;
|
||||
bread(SBOFF, (char *)&sblock, (long)SBSIZE);
|
||||
dev_bsize = sblock.fs_fsize / fsbtodb(&sblock, 1);
|
||||
maxino = sblock.fs_ncg * sblock.fs_ipg;
|
||||
|
|
|
|||
Loading…
Reference in a new issue