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.
This commit is contained in:
parent
c67ba61175
commit
6ae8358759
@ -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 ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user