There is no code left that uses disk size data, so don't query it.

This also failed when querying the simulated block device from mfs.
Fixes PR kern/42782.
This commit is contained in:
mlelstv 2010-02-11 00:06:16 +00:00
parent dd8b03031c
commit b44bbb30f5
1 changed files with 2 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ffs_vfsops.c,v 1.257 2010/02/05 20:03:36 mlelstv Exp $ */
/* $NetBSD: ffs_vfsops.c,v 1.258 2010/02/11 00:06:16 mlelstv Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ffs_vfsops.c,v 1.257 2010/02/05 20:03:36 mlelstv Exp $");
__KERNEL_RCSID(0, "$NetBSD: ffs_vfsops.c,v 1.258 2010/02/11 00:06:16 mlelstv Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ffs.h"
@ -822,8 +822,6 @@ ffs_mountfs(struct vnode *devvp, struct mount *mp, struct lwp *l)
daddr_t sblockloc, fsblockloc;
int blks, fstype;
int error, i, bsize, ronly, bset = 0;
uint64_t numsecs;
unsigned secsize;
#ifdef FFS_EI
int needswap = 0; /* keep gcc happy */
#endif
@ -842,9 +840,6 @@ ffs_mountfs(struct vnode *devvp, struct mount *mp, struct lwp *l)
return (error);
ronly = (mp->mnt_flag & MNT_RDONLY) != 0;
error = getdisksize(devvp, &numsecs, &secsize);
if (error)
return (error);
bp = NULL;
ump = NULL;