purge EFS crap
authorSam Leffler <sam@ucbvax.Berkeley.EDU>
Wed, 4 Aug 1982 07:59:30 +0000 (23:59 -0800)
committerSam Leffler <sam@ucbvax.Berkeley.EDU>
Wed, 4 Aug 1982 07:59:30 +0000 (23:59 -0800)
SCCS-vsn: sys/kern/vfs_vnops.c 4.26

usr/src/sys/kern/vfs_vnops.c

index ba39e7f..d6eae21 100644 (file)
@@ -1,4 +1,4 @@
-/*     fio.c   4.25    82/07/17        */
+/*     vfs_vnops.c     4.26    82/08/03        */
 
 #include "../h/param.h"
 #include "../h/systm.h"
 
 #include "../h/param.h"
 #include "../h/systm.h"
 #include "../h/socket.h"
 #include "../h/socketvar.h"
 #include "../h/proc.h"
 #include "../h/socket.h"
 #include "../h/socketvar.h"
 #include "../h/proc.h"
-#ifdef EFS
-#include "../net/in.h"
-#include "../h/efs.h"
-#endif
 
 /*
  * Openi called to allow handler
  * of special files to initialize and
  * validate before actual IO.
  */
 
 /*
  * Openi called to allow handler
  * of special files to initialize and
  * validate before actual IO.
  */
-#ifdef EFS
-openi(ip, rw, trf)
-#else
-openi(ip, rw)
-#endif
+openi(ip, mode)
        register struct inode *ip;
 {
        dev_t dev;
        register struct inode *ip;
 {
        dev_t dev;
@@ -41,17 +33,13 @@ openi(ip, rw)
        case IFCHR:
                if (maj >= nchrdev)
                        goto bad;
        case IFCHR:
                if (maj >= nchrdev)
                        goto bad;
-#ifdef EFS
-               (*cdevsw[maj].d_open)(dev, rw, trf);
-#else
-               (*cdevsw[maj].d_open)(dev, rw);
-#endif
+               (*cdevsw[maj].d_open)(dev, mode);
                break;
 
        case IFBLK:
                if (maj >= nblkdev)
                        goto bad;
                break;
 
        case IFBLK:
                if (maj >= nblkdev)
                        goto bad;
-               (*bdevsw[maj].d_open)(dev, rw);
+               (*bdevsw[maj].d_open)(dev, mode);
        }
        return;
 
        }
        return;
 
@@ -123,14 +111,6 @@ owner(follow)
        ip = namei(uchar, 0, follow);
        if (ip == NULL)
                return (NULL);
        ip = namei(uchar, 0, follow);
        if (ip == NULL)
                return (NULL);
-#ifdef EFS
-       /*
-        * References to extended file system are
-        * returned to the caller.
-        */
-       if (efsinode(ip))
-               return (ip);
-#endif
        if (u.u_uid == ip->i_uid)
                return (ip);
        if (suser())
        if (u.u_uid == ip->i_uid)
                return (ip);
        if (suser())