BSD 4_4_Lite1 release
[unix-history] / usr / src / sys / kern / vfs_conf.c
index 60a88ce..2fe39eb 100644 (file)
@@ -2,9 +2,35 @@
  * Copyright (c) 1989, 1993
  *     The Regents of the University of California.  All rights reserved.
  *
  * Copyright (c) 1989, 1993
  *     The Regents of the University of California.  All rights reserved.
  *
- * %sccs.include.redist.c%
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ *    must display the following acknowledgement:
+ *     This product includes software developed by the University of
+ *     California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ *    may be used to endorse or promote products derived from this software
+ *    without specific prior written permission.
  *
  *
- *     @(#)vfs_conf.c  8.5 (Berkeley) %G%
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ *     @(#)vfs_conf.c  8.8 (Berkeley) 3/31/94
  */
 
 #include <sys/param.h>
  */
 
 #include <sys/param.h>
@@ -59,13 +85,6 @@ extern       struct vfsops nfs_vfsops;
 #define        NFS_VFSOPS      NULL
 #endif
 
 #define        NFS_VFSOPS      NULL
 #endif
 
-#ifdef LOFS
-extern struct vfsops lofs_vfsops;
-#define        LOFS_VFSOPS     &lofs_vfsops
-#else
-#define        LOFS_VFSOPS     NULL
-#endif
-
 #ifdef FDESC
 extern struct vfsops fdesc_vfsops;
 #define        FDESC_VFSOPS    &fdesc_vfsops
 #ifdef FDESC
 extern struct vfsops fdesc_vfsops;
 #define        FDESC_VFSOPS    &fdesc_vfsops
@@ -116,10 +135,17 @@ extern    struct vfsops afs_vfsops;
 #endif
 
 #ifdef CD9660
 #endif
 
 #ifdef CD9660
-extern struct vfsops isofs_vfsops;
-#define ISOFS_VFSOPS   &isofs_vfsops
+extern struct vfsops cd9660_vfsops;
+#define CD9660_VFSOPS  &cd9660_vfsops
 #else
 #else
-#define ISOFS_VFSOPS   NULL
+#define CD9660_VFSOPS  NULL
+#endif
+
+#ifdef UNION
+extern struct vfsops union_vfsops;
+#define        UNION_VFSOPS    &union_vfsops
+#else
+#define        UNION_VFSOPS    NULL
 #endif
 
 struct vfsops *vfssw[] = {
 #endif
 
 struct vfsops *vfssw[] = {
@@ -129,7 +155,7 @@ struct vfsops *vfssw[] = {
        MFS_VFSOPS,             /* 3 = MOUNT_MFS */
        NULL,                   /* 4 = MOUNT_PC */
        LFS_VFSOPS,             /* 5 = MOUNT_LFS */
        MFS_VFSOPS,             /* 3 = MOUNT_MFS */
        NULL,                   /* 4 = MOUNT_PC */
        LFS_VFSOPS,             /* 5 = MOUNT_LFS */
-       LOFS_VFSOPS,            /* 6 = MOUNT_LOFS */
+       NULL,                   /* 6 = MOUNT_LOFS */
        FDESC_VFSOPS,           /* 7 = MOUNT_FDESC */
        PORTAL_VFSOPS,          /* 8 = MOUNT_PORTAL */
        NULL_VFSOPS,            /* 9 = MOUNT_NULL */
        FDESC_VFSOPS,           /* 7 = MOUNT_FDESC */
        PORTAL_VFSOPS,          /* 8 = MOUNT_PORTAL */
        NULL_VFSOPS,            /* 9 = MOUNT_NULL */
@@ -137,7 +163,8 @@ struct vfsops *vfssw[] = {
        KERNFS_VFSOPS,          /* 11 = MOUNT_KERNFS */
        PROCFS_VFSOPS,          /* 12 = MOUNT_PROCFS */
        AFS_VFSOPS,             /* 13 = MOUNT_AFS */
        KERNFS_VFSOPS,          /* 11 = MOUNT_KERNFS */
        PROCFS_VFSOPS,          /* 12 = MOUNT_PROCFS */
        AFS_VFSOPS,             /* 13 = MOUNT_AFS */
-       ISOFS_VFSOPS,           /* 14 = MOUNT_CD9660 */
+       CD9660_VFSOPS,          /* 14 = MOUNT_CD9660 */
+       UNION_VFSOPS,           /* 15 = MOUNT_UNION */
        0
 };
 
        0
 };
 
@@ -162,16 +189,16 @@ extern struct vnodeopv_desc spec_vnodeop_opv_desc;
 extern struct vnodeopv_desc nfsv2_vnodeop_opv_desc;
 extern struct vnodeopv_desc spec_nfsv2nodeop_opv_desc;
 extern struct vnodeopv_desc fifo_nfsv2nodeop_opv_desc;
 extern struct vnodeopv_desc nfsv2_vnodeop_opv_desc;
 extern struct vnodeopv_desc spec_nfsv2nodeop_opv_desc;
 extern struct vnodeopv_desc fifo_nfsv2nodeop_opv_desc;
-extern struct vnodeopv_desc lofs_vnodeop_opv_desc;
 extern struct vnodeopv_desc fdesc_vnodeop_opv_desc;
 extern struct vnodeopv_desc portal_vnodeop_opv_desc;
 extern struct vnodeopv_desc null_vnodeop_opv_desc;
 extern struct vnodeopv_desc umap_vnodeop_opv_desc;
 extern struct vnodeopv_desc kernfs_vnodeop_opv_desc;
 extern struct vnodeopv_desc procfs_vnodeop_opv_desc;
 extern struct vnodeopv_desc fdesc_vnodeop_opv_desc;
 extern struct vnodeopv_desc portal_vnodeop_opv_desc;
 extern struct vnodeopv_desc null_vnodeop_opv_desc;
 extern struct vnodeopv_desc umap_vnodeop_opv_desc;
 extern struct vnodeopv_desc kernfs_vnodeop_opv_desc;
 extern struct vnodeopv_desc procfs_vnodeop_opv_desc;
-extern struct vnodeopv_desc isofs_vnodeop_opv_desc;
-extern struct vnodeopv_desc isofs_specop_opv_desc;
-extern struct vnodeopv_desc isofs_fifoop_opv_desc;
+extern struct vnodeopv_desc cd9660_vnodeop_opv_desc;
+extern struct vnodeopv_desc cd9660_specop_opv_desc;
+extern struct vnodeopv_desc cd9660_fifoop_opv_desc;
+extern struct vnodeopv_desc union_vnodeop_opv_desc;
 
 struct vnodeopv_desc *vfs_opv_descs[] = {
        &ffs_vnodeop_opv_desc,
 
 struct vnodeopv_desc *vfs_opv_descs[] = {
        &ffs_vnodeop_opv_desc,
@@ -201,9 +228,6 @@ struct vnodeopv_desc *vfs_opv_descs[] = {
        &fifo_nfsv2nodeop_opv_desc,
 #endif
 #endif
        &fifo_nfsv2nodeop_opv_desc,
 #endif
 #endif
-#ifdef LOFS
-       &lofs_vnodeop_opv_desc,
-#endif
 #ifdef FDESC
        &fdesc_vnodeop_opv_desc,
 #endif
 #ifdef FDESC
        &fdesc_vnodeop_opv_desc,
 #endif
@@ -223,11 +247,14 @@ struct vnodeopv_desc *vfs_opv_descs[] = {
        &procfs_vnodeop_opv_desc,
 #endif
 #ifdef CD9660
        &procfs_vnodeop_opv_desc,
 #endif
 #ifdef CD9660
-       &isofs_vnodeop_opv_desc,
-       &isofs_specop_opv_desc,
+       &cd9660_vnodeop_opv_desc,
+       &cd9660_specop_opv_desc,
 #ifdef FIFO
 #ifdef FIFO
-       &isofs_fifoop_opv_desc,
+       &cd9660_fifoop_opv_desc,
+#endif
 #endif
 #endif
+#ifdef UNION
+       &union_vnodeop_opv_desc,
 #endif
        NULL
 };
 #endif
        NULL
 };