Source-Changes-HG archive

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

[src/trunk]: src/sys/msdosfs remove support for creating files and directorie...



details:   https://anonhg.NetBSD.org/src/rev/622f2b2dd3a5
branches:  trunk
changeset: 512962:622f2b2dd3a5
user:      assar <assar%NetBSD.org@localhost>
date:      Thu Jul 19 19:12:33 2001 +0000

description:
remove support for creating files and directories from msdosfs_mknod

diffstat:

 sys/msdosfs/msdosfs_vnops.c |  20 ++++----------------
 1 files changed, 4 insertions(+), 16 deletions(-)

diffs (34 lines):

diff -r 22c6c9630f7f -r 622f2b2dd3a5 sys/msdosfs/msdosfs_vnops.c
--- a/sys/msdosfs/msdosfs_vnops.c       Thu Jul 19 19:09:22 2001 +0000
+++ b/sys/msdosfs/msdosfs_vnops.c       Thu Jul 19 19:12:33 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msdosfs_vnops.c,v 1.109 2001/06/12 14:59:29 wiz Exp $  */
+/*     $NetBSD: msdosfs_vnops.c,v 1.110 2001/07/19 19:12:33 assar Exp $        */
 
 /*-
  * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@@ -179,21 +179,9 @@
                struct vattr *a_vap;
        } */ *ap = v;
 
-       switch (ap->a_vap->va_type) {
-       case VDIR:
-               return (msdosfs_mkdir((struct vop_mkdir_args *)ap));
-               break;
-
-       case VREG:
-               return (msdosfs_create((struct vop_create_args *)ap));
-               break;
-
-       default:
-               PNBUF_PUT(ap->a_cnp->cn_pnbuf);
-               vput(ap->a_dvp);
-               return (EINVAL);
-       }
-       /* NOTREACHED */
+       PNBUF_PUT(ap->a_cnp->cn_pnbuf);
+       vput(ap->a_dvp);
+       return (EINVAL);
 }
 
 int



Home | Main Index | Thread Index | Old Index