From 6e294b7979a4541563d9bfb19153d99b54be3cdb Mon Sep 17 00:00:00 2001 From: dima Date: Wed, 21 Jun 1995 03:55:12 +0000 Subject: `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) --- sbin/quotacheck/quotacheck.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sbin/quotacheck') diff --git a/sbin/quotacheck/quotacheck.c b/sbin/quotacheck/quotacheck.c index 1ee9e87..465aa88 100644 --- a/sbin/quotacheck/quotacheck.c +++ b/sbin/quotacheck/quotacheck.c @@ -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; -- cgit v1.1