summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>1997-03-15 18:58:10 +0000
committersos <sos@FreeBSD.org>1997-03-15 18:58:10 +0000
commit67415054809a31660ac47afe5950d182cae140e7 (patch)
tree6a0b37b39c36cdfc4dd2af24609f8d1360b40643 /sys/ufs
parent324734834f0140f82b59e64d0d77ffcaf10acaca (diff)
downloadFreeBSD-src-67415054809a31660ac47afe5950d182cae140e7.zip
FreeBSD-src-67415054809a31660ac47afe5950d182cae140e7.tar.gz
Fix support for != 512 byte sector devices.
Restores the use of SBLOCK instead of the BSOFF/sectorsize calculation. Using SBLOCK is bogus however in that it uses DEV_BSIZE instead of the actual sector size, but that is taken care of in other places. Changing the SBLOCK would be better, but it affects the system in other places, and doing it this way makes it possible to use filesystems that was made before the lite2 merge.
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index eded968..1276bf8 100644
--- a/sys/ufs/ffs/ffs_vfsops.c
+++ b/sys/ufs/ffs/ffs_vfsops.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ffs_vfsops.c 8.31 (Berkeley) 5/20/95
- * $Id: ffs_vfsops.c,v 1.45 1997/02/22 09:47:08 peter Exp $
+ * $Id: ffs_vfsops.c,v 1.46 1997/03/09 06:00:44 mpp Exp $
*/
#include "opt_quota.h"
@@ -520,7 +520,7 @@ ffs_mountfs(devvp, mp, p)
bp = NULL;
ump = NULL;
- if (error = bread(devvp, (ufs_daddr_t)(SBOFF/size), SBSIZE, cred, &bp))
+ if (error = bread(devvp, SBLOCK, SBSIZE, cred, &bp))
goto out;
fs = (struct fs *)bp->b_data;
if (fs->fs_magic != FS_MAGIC || fs->fs_bsize > MAXBSIZE ||
OpenPOWER on IntegriCloud