diff options
author | dima <dima@FreeBSD.org> | 1995-06-21 03:55:12 +0000 |
---|---|---|
committer | dima <dima@FreeBSD.org> | 1995-06-21 03:55:12 +0000 |
commit | 6e294b7979a4541563d9bfb19153d99b54be3cdb (patch) | |
tree | cb8e8b13ea81dfeb0dcf49cc9738e6107ccf9e81 /sbin | |
parent | 969b12486948ceb40c08cb8c0bb5f82eea575815 (diff) | |
download | FreeBSD-src-6e294b7979a4541563d9bfb19153d99b54be3cdb.zip FreeBSD-src-6e294b7979a4541563d9bfb19153d99b54be3cdb.tar.gz |
`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)
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/quotacheck/quotacheck.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |