`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:
Dima Ruban 1995-06-21 03:55:12 +00:00
parent e78bad2371
commit 78f934546c
1 changed files with 1 additions and 0 deletions

View File

@ -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;