`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
|
@ -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 New Issue