Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev No longer need to calculate geomsize if we use ficti...



details:   https://anonhg.NetBSD.org/src/rev/6723153c4551
branches:  trunk
changeset: 535206:6723153c4551
user:      enami <enami%NetBSD.org@localhost>
date:      Mon Aug 12 02:34:12 2002 +0000

description:
No longer need to calculate geomsize if we use fictitious geometry.

diffstat:

 sys/dev/vnd.c |  9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diffs (30 lines):

diff -r 4f78769d0d72 -r 6723153c4551 sys/dev/vnd.c
--- a/sys/dev/vnd.c     Mon Aug 12 02:22:52 2002 +0000
+++ b/sys/dev/vnd.c     Mon Aug 12 02:34:12 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vnd.c,v 1.84 2002/08/02 14:43:32 oster Exp $   */
+/*     $NetBSD: vnd.c,v 1.85 2002/08/12 02:34:12 enami Exp $   */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -98,7 +98,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.84 2002/08/02 14:43:32 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.85 2002/08/12 02:34:12 enami Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "fs_nfs.h"
@@ -823,11 +823,6 @@
                        vnd->sc_geom.vng_nsectors = 32;
                        vnd->sc_geom.vng_ntracks = 64;
                        vnd->sc_geom.vng_ncylinders = vnd->sc_size / (64 * 32);
-
-                       /*
-                        * Compute the actual size allowed by this geometry.
-                        */
-                       geomsize = 32 * 64 * vnd->sc_geom.vng_ncylinders;
                }
 
                if ((error = vndsetcred(vnd, p->p_ucred)) != 0)



Home | Main Index | Thread Index | Old Index