diff options
author | Dima Ruban <dima@FreeBSD.org> | 1995-06-21 03:55:12 +0000 |
---|---|---|
committer | Dima Ruban <dima@FreeBSD.org> | 1995-06-21 03:55:12 +0000 |
commit | 78f934546cb0b43432da91b6fbfdcfa49b89d5ed (patch) | |
tree | cb8e8b13ea81dfeb0dcf49cc9738e6107ccf9e81 /sbin/quotacheck/quotacheck.c | |
parent | e78bad2371647f86416a7285ff4a0bcf7d9937ce (diff) | |
download | src-78f934546cb0b43432da91b6fbfdcfa49b89d5ed.tar.gz src-78f934546cb0b43432da91b6fbfdcfa49b89d5ed.zip |
`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)
Notes
Notes:
svn path=/head/; revision=9273
Diffstat (limited to 'sbin/quotacheck/quotacheck.c')
-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 1ee9e87ec231..465aa881f44c 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; |