summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2003-08-14 07:46:41 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2003-08-14 07:46:41 +0000
commitf5d6164614809806f64cdf8d9d7620b20d27bb8b (patch)
tree202d134439ca77f3453ace391e5914aa44160e6c /sys
parente37462c57e2b609bb6438cf547935c0b9b7dd634 (diff)
constify vfsops; tedu@ ok
Diffstat (limited to 'sys')
-rw-r--r--sys/adosfs/advfsops.c4
-rw-r--r--sys/isofs/cd9660/cd9660_vfsops.c4
-rw-r--r--sys/kern/vfs_conf.c36
-rw-r--r--sys/miscfs/fdesc/fdesc.h4
-rw-r--r--sys/miscfs/fdesc/fdesc_vfsops.c4
-rw-r--r--sys/miscfs/kernfs/kernfs.h4
-rw-r--r--sys/miscfs/kernfs/kernfs_vfsops.c4
-rw-r--r--sys/miscfs/nullfs/null.h4
-rw-r--r--sys/miscfs/nullfs/null_vfsops.c4
-rw-r--r--sys/miscfs/portal/portal.h4
-rw-r--r--sys/miscfs/portal/portal_vfsops.c4
-rw-r--r--sys/miscfs/procfs/procfs.h4
-rw-r--r--sys/miscfs/procfs/procfs_vfsops.c4
-rw-r--r--sys/miscfs/umapfs/umap.h4
-rw-r--r--sys/miscfs/umapfs/umap_vfsops.c4
-rw-r--r--sys/miscfs/union/union.h4
-rw-r--r--sys/miscfs/union/union_vfsops.c4
-rw-r--r--sys/msdosfs/msdosfs_vfsops.c4
-rw-r--r--sys/nfs/nfs_vfsops.c4
-rw-r--r--sys/ntfs/ntfs_vfsops.c4
-rw-r--r--sys/sys/mount.h6
-rw-r--r--sys/ufs/ext2fs/ext2fs_vfsops.c4
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c4
-rw-r--r--sys/ufs/lfs/lfs_vfsops.c4
-rw-r--r--sys/ufs/mfs/mfs_vfsops.c4
-rw-r--r--sys/xfs/xfs_vfsops-openbsd.c2
26 files changed, 68 insertions, 68 deletions
diff --git a/sys/adosfs/advfsops.c b/sys/adosfs/advfsops.c
index 56b0ee963cd..f26aadfbaf9 100644
--- a/sys/adosfs/advfsops.c
+++ b/sys/adosfs/advfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: advfsops.c,v 1.24 2002/04/23 18:54:12 espie Exp $ */
+/* $OpenBSD: advfsops.c,v 1.25 2003/08/14 07:46:39 mickey Exp $ */
/* $NetBSD: advfsops.c,v 1.24 1996/12/22 10:10:12 cgd Exp $ */
/*
@@ -743,7 +743,7 @@ adosfs_init(struct vfsconf *vfsp)
/*
* vfs generic function call table
*/
-struct vfsops adosfs_vfsops = {
+const struct vfsops adosfs_vfsops = {
adosfs_mount,
adosfs_start,
adosfs_unmount,
diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c
index a4975e70776..13097ffcd38 100644
--- a/sys/isofs/cd9660/cd9660_vfsops.c
+++ b/sys/isofs/cd9660/cd9660_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cd9660_vfsops.c,v 1.34 2003/06/02 23:28:05 millert Exp $ */
+/* $OpenBSD: cd9660_vfsops.c,v 1.35 2003/08/14 07:46:39 mickey Exp $ */
/* $NetBSD: cd9660_vfsops.c,v 1.26 1997/06/13 15:38:58 pk Exp $ */
/*-
@@ -62,7 +62,7 @@
#include <isofs/cd9660/iso_rrip.h>
#include <isofs/cd9660/cd9660_node.h>
-struct vfsops cd9660_vfsops = {
+const struct vfsops cd9660_vfsops = {
cd9660_mount,
cd9660_start,
cd9660_unmount,
diff --git a/sys/kern/vfs_conf.c b/sys/kern/vfs_conf.c
index 0df14e3107e..28e9c04eb02 100644
--- a/sys/kern/vfs_conf.c
+++ b/sys/kern/vfs_conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_conf.c,v 1.21 2003/06/02 23:28:07 millert Exp $ */
+/* $OpenBSD: vfs_conf.c,v 1.22 2003/08/14 07:46:39 mickey Exp $ */
/* $NetBSD: vfs_conf.c,v 1.21.4.1 1995/11/01 00:06:26 jtc Exp $ */
/*
@@ -80,71 +80,71 @@ struct vnode *rootvnode;
#ifdef FFS
-extern struct vfsops ffs_vfsops;
+extern const struct vfsops ffs_vfsops;
#endif
#ifdef LFS
-extern struct vfsops lfs_vfsops;
+extern const struct vfsops lfs_vfsops;
#endif
#ifdef MFS
-extern struct vfsops mfs_vfsops;
+extern const struct vfsops mfs_vfsops;
#endif
#ifdef MSDOSFS
-extern struct vfsops msdosfs_vfsops;
+extern const struct vfsops msdosfs_vfsops;
#endif
#ifdef NFSCLIENT
-extern struct vfsops nfs_vfsops;
+extern const struct vfsops nfs_vfsops;
#endif
#ifdef FDESC
-extern struct vfsops fdesc_vfsops;
+extern const struct vfsops fdesc_vfsops;
#endif
#ifdef PORTAL
-extern struct vfsops portal_vfsops;
+extern const struct vfsops portal_vfsops;
#endif
#ifdef NULLFS
-extern struct vfsops nullfs_vfsops;
+extern const struct vfsops nullfs_vfsops;
#endif
#ifdef UMAPFS
-extern struct vfsops umapfs_vfsops;
+extern const struct vfsops umapfs_vfsops;
#endif
#ifdef KERNFS
-extern struct vfsops kernfs_vfsops;
+extern const struct vfsops kernfs_vfsops;
#endif
#ifdef PROCFS
-extern struct vfsops procfs_vfsops;
+extern const struct vfsops procfs_vfsops;
#endif
#ifdef CD9660
-extern struct vfsops cd9660_vfsops;
+extern const struct vfsops cd9660_vfsops;
#endif
#ifdef UNION
-extern struct vfsops union_vfsops;
+extern const struct vfsops union_vfsops;
#endif
#ifdef ADOSFS
-extern struct vfsops adosfs_vfsops;
+extern const struct vfsops adosfs_vfsops;
#endif
#ifdef EXT2FS
-extern struct vfsops ext2fs_vfsops;
+extern const struct vfsops ext2fs_vfsops;
#endif
#ifdef XFS
-extern struct vfsops xfs_vfsops;
+extern const struct vfsops xfs_vfsops;
#endif
#ifdef NTFS
-extern struct vfsops ntfs_vfsops;
+extern const struct vfsops ntfs_vfsops;
#endif
/*
diff --git a/sys/miscfs/fdesc/fdesc.h b/sys/miscfs/fdesc/fdesc.h
index 870c3aef0b8..f3353be6ace 100644
--- a/sys/miscfs/fdesc/fdesc.h
+++ b/sys/miscfs/fdesc/fdesc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fdesc.h,v 1.8 2003/06/02 23:28:10 millert Exp $ */
+/* $OpenBSD: fdesc.h,v 1.9 2003/08/14 07:46:39 mickey Exp $ */
/* $NetBSD: fdesc.h,v 1.9 1996/02/09 22:40:03 christos Exp $ */
/*
@@ -71,5 +71,5 @@ extern int fdesc_init(struct vfsconf *);
extern int fdesc_root(struct mount *, struct vnode **);
extern int fdesc_allocvp(fdntype, int, struct mount *, struct vnode **);
extern int (**fdesc_vnodeop_p)(void *);
-extern struct vfsops fdesc_vfsops;
+extern const struct vfsops fdesc_vfsops;
#endif /* _KERNEL */
diff --git a/sys/miscfs/fdesc/fdesc_vfsops.c b/sys/miscfs/fdesc/fdesc_vfsops.c
index a052c4bf703..75772a024b7 100644
--- a/sys/miscfs/fdesc/fdesc_vfsops.c
+++ b/sys/miscfs/fdesc/fdesc_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fdesc_vfsops.c,v 1.12 2003/06/02 23:28:10 millert Exp $ */
+/* $OpenBSD: fdesc_vfsops.c,v 1.13 2003/08/14 07:46:39 mickey Exp $ */
/* $NetBSD: fdesc_vfsops.c,v 1.21 1996/02/09 22:40:07 christos Exp $ */
/*
@@ -219,7 +219,7 @@ fdesc_sync(mp, waitfor, uc, p)
#define fdesc_checkexp ((int (*)(struct mount *, struct mbuf *, \
int *, struct ucred **))eopnotsupp)
-struct vfsops fdesc_vfsops = {
+const struct vfsops fdesc_vfsops = {
fdesc_mount,
fdesc_start,
fdesc_unmount,
diff --git a/sys/miscfs/kernfs/kernfs.h b/sys/miscfs/kernfs/kernfs.h
index d956aed3f8e..4083055821a 100644
--- a/sys/miscfs/kernfs/kernfs.h
+++ b/sys/miscfs/kernfs/kernfs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: kernfs.h,v 1.12 2003/08/11 10:19:24 mickey Exp $ */
+/* $OpenBSD: kernfs.h,v 1.13 2003/08/14 07:46:39 mickey Exp $ */
/* $NetBSD: kernfs.h,v 1.10 1996/02/09 22:40:21 christos Exp $ */
/*
@@ -97,6 +97,6 @@ int kernfs_init(struct vfsconf *);
int kernfs_allocvp(const struct kern_target *, struct mount *, struct vnode **);
const struct kern_target *kernfs_findtarget(char *, int);
extern int (**kernfs_vnodeop_p)(void *);
-extern struct vfsops kernfs_vfsops;
+extern const struct vfsops kernfs_vfsops;
extern dev_t rrootdev;
#endif /* _KERNEL */
diff --git a/sys/miscfs/kernfs/kernfs_vfsops.c b/sys/miscfs/kernfs/kernfs_vfsops.c
index ba83e5b996d..995d37e4d11 100644
--- a/sys/miscfs/kernfs/kernfs_vfsops.c
+++ b/sys/miscfs/kernfs/kernfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kernfs_vfsops.c,v 1.24 2003/08/11 10:19:24 mickey Exp $ */
+/* $OpenBSD: kernfs_vfsops.c,v 1.25 2003/08/14 07:46:39 mickey Exp $ */
/* $NetBSD: kernfs_vfsops.c,v 1.26 1996/04/22 01:42:27 christos Exp $ */
/*
@@ -209,7 +209,7 @@ kernfs_statfs(mp, sbp, p)
return (0);
}
-struct vfsops kernfs_vfsops = {
+const struct vfsops kernfs_vfsops = {
kernfs_mount,
kernfs_start,
kernfs_unmount,
diff --git a/sys/miscfs/nullfs/null.h b/sys/miscfs/nullfs/null.h
index c4d9344fc9c..aaf66c75e0f 100644
--- a/sys/miscfs/nullfs/null.h
+++ b/sys/miscfs/nullfs/null.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: null.h,v 1.13 2003/06/02 23:28:10 millert Exp $ */
+/* $OpenBSD: null.h,v 1.14 2003/08/14 07:46:39 mickey Exp $ */
/* $NetBSD: null.h,v 1.13 2001/11/07 04:56:09 enami Exp $ */
/*
@@ -119,7 +119,7 @@ struct vnode *layer_checkvp(struct vnode *, char *, int);
#endif
extern int (**nullfs_vnodeop_p)(void *);
-extern struct vfsops nullfs_vfsops;
+extern const struct vfsops nullfs_vfsops;
int nullfs_init(struct vfsconf *);
diff --git a/sys/miscfs/nullfs/null_vfsops.c b/sys/miscfs/nullfs/null_vfsops.c
index 2989d6ae692..a30f4a42c8a 100644
--- a/sys/miscfs/nullfs/null_vfsops.c
+++ b/sys/miscfs/nullfs/null_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: null_vfsops.c,v 1.16 2003/06/02 23:28:10 millert Exp $ */
+/* $OpenBSD: null_vfsops.c,v 1.17 2003/08/14 07:46:39 mickey Exp $ */
/* $NetBSD: null_vfsops.c,v 1.38 2002/09/21 18:09:29 christos Exp $ */
/*
@@ -282,7 +282,7 @@ const struct vnodeopv_desc * const nullfs_vnodeopv_descs[] = {
NULL,
};
-struct vfsops nullfs_vfsops = {
+const struct vfsops nullfs_vfsops = {
nullfs_mount,
layerfs_start,
nullfs_unmount,
diff --git a/sys/miscfs/portal/portal.h b/sys/miscfs/portal/portal.h
index 860068d2992..dd7db01cfa4 100644
--- a/sys/miscfs/portal/portal.h
+++ b/sys/miscfs/portal/portal.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: portal.h,v 1.4 2003/06/02 23:28:10 millert Exp $ */
+/* $OpenBSD: portal.h,v 1.5 2003/08/14 07:46:39 mickey Exp $ */
/* $NetBSD: portal.h,v 1.7 1996/02/09 22:40:40 christos Exp $ */
/*
@@ -67,5 +67,5 @@ struct portalnode {
#define PORTAL_ROOTFILEID 2
extern int (**portal_vnodeop_p)(void *);
-extern struct vfsops portal_vfsops;
+extern const struct vfsops portal_vfsops;
#endif /* _KERNEL */
diff --git a/sys/miscfs/portal/portal_vfsops.c b/sys/miscfs/portal/portal_vfsops.c
index cd7eeeef5b5..23027807637 100644
--- a/sys/miscfs/portal/portal_vfsops.c
+++ b/sys/miscfs/portal/portal_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: portal_vfsops.c,v 1.17 2003/06/02 23:28:10 millert Exp $ */
+/* $OpenBSD: portal_vfsops.c,v 1.18 2003/08/14 07:46:39 mickey Exp $ */
/* $NetBSD: portal_vfsops.c,v 1.14 1996/02/09 22:40:41 christos Exp $ */
/*
@@ -261,7 +261,7 @@ portal_statfs(mp, sbp, p)
#define portal_checkexp ((int (*)(struct mount *, struct mbuf *, \
int *, struct ucred **))eopnotsupp)
-struct vfsops portal_vfsops = {
+const struct vfsops portal_vfsops = {
portal_mount,
portal_start,
portal_unmount,
diff --git a/sys/miscfs/procfs/procfs.h b/sys/miscfs/procfs/procfs.h
index 0608ca7f035..c590f949c76 100644
--- a/sys/miscfs/procfs/procfs.h
+++ b/sys/miscfs/procfs/procfs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: procfs.h,v 1.20 2003/08/11 10:08:04 mickey Exp $ */
+/* $OpenBSD: procfs.h,v 1.21 2003/08/14 07:46:40 mickey Exp $ */
/* $NetBSD: procfs.h,v 1.17 1996/02/12 15:01:41 christos Exp $ */
/*
@@ -137,7 +137,7 @@ int procfs_rw(void *);
#define PROCFS_WANT 0x02
extern int (**procfs_vnodeop_p)(void *);
-extern struct vfsops procfs_vfsops;
+extern const struct vfsops procfs_vfsops;
struct vfsconf;
diff --git a/sys/miscfs/procfs/procfs_vfsops.c b/sys/miscfs/procfs/procfs_vfsops.c
index eab6f80038f..34a262262ae 100644
--- a/sys/miscfs/procfs/procfs_vfsops.c
+++ b/sys/miscfs/procfs/procfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: procfs_vfsops.c,v 1.21 2003/08/05 20:47:36 tedu Exp $ */
+/* $OpenBSD: procfs_vfsops.c,v 1.22 2003/08/14 07:46:40 mickey Exp $ */
/* $NetBSD: procfs_vfsops.c,v 1.25 1996/02/09 22:40:53 christos Exp $ */
/*
@@ -220,7 +220,7 @@ procfs_statfs(mp, sbp, p)
#define procfs_checkexp ((int (*)(struct mount *, struct mbuf *, \
int *, struct ucred **))eopnotsupp)
-struct vfsops procfs_vfsops = {
+const struct vfsops procfs_vfsops = {
procfs_mount,
procfs_start,
procfs_unmount,
diff --git a/sys/miscfs/umapfs/umap.h b/sys/miscfs/umapfs/umap.h
index 876a585269e..71732eb05fe 100644
--- a/sys/miscfs/umapfs/umap.h
+++ b/sys/miscfs/umapfs/umap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: umap.h,v 1.12 2003/06/02 23:28:11 millert Exp $ */
+/* $OpenBSD: umap.h,v 1.13 2003/08/14 07:46:40 mickey Exp $ */
/* $NetBSD: umap.h,v 1.9 1999/07/08 01:19:06 wrstuden Exp $ */
/*
@@ -103,7 +103,7 @@ void umap_mapids(struct mount *v_mount, struct ucred *credp);
#endif
extern int (**umapfs_vnodeop_p)(void *);
-extern struct vfsops umapfs_vfsops;
+extern const struct vfsops umapfs_vfsops;
int umap_bypass(void *);
diff --git a/sys/miscfs/umapfs/umap_vfsops.c b/sys/miscfs/umapfs/umap_vfsops.c
index 48add52e066..0209a6e92c6 100644
--- a/sys/miscfs/umapfs/umap_vfsops.c
+++ b/sys/miscfs/umapfs/umap_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: umap_vfsops.c,v 1.22 2003/06/02 23:28:11 millert Exp $ */
+/* $OpenBSD: umap_vfsops.c,v 1.23 2003/08/14 07:46:40 mickey Exp $ */
/* $NetBSD: umap_vfsops.c,v 1.35 2002/09/21 18:09:31 christos Exp $ */
/*
@@ -301,7 +301,7 @@ const struct vnodeopv_desc * const umapfs_vnodeopv_descs[] = {
NULL,
};
-struct vfsops umapfs_vfsops = {
+const struct vfsops umapfs_vfsops = {
umapfs_mount,
layerfs_start,
umapfs_unmount,
diff --git a/sys/miscfs/union/union.h b/sys/miscfs/union/union.h
index af2acf81af7..af77df3ebb2 100644
--- a/sys/miscfs/union/union.h
+++ b/sys/miscfs/union/union.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: union.h,v 1.9 2003/06/02 23:28:11 millert Exp $ */
+/* $OpenBSD: union.h,v 1.10 2003/08/14 07:46:40 mickey Exp $ */
/* $NetBSD: union.h,v 1.13 2002/09/21 18:09:31 christos Exp $ */
/*
@@ -128,7 +128,7 @@ extern void union_newsize(struct vnode *, off_t, off_t);
#define OTHERVP(vp) (UPPERVP(vp) ? UPPERVP(vp) : LOWERVP(vp))
extern int (**union_vnodeop_p)(void *);
-extern struct vfsops union_vfsops;
+extern const struct vfsops union_vfsops;
int union_init(struct vfsconf *);
int union_freevp(struct vnode *);
diff --git a/sys/miscfs/union/union_vfsops.c b/sys/miscfs/union/union_vfsops.c
index 3b216d37358..4dd3345058c 100644
--- a/sys/miscfs/union/union_vfsops.c
+++ b/sys/miscfs/union/union_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: union_vfsops.c,v 1.15 2003/06/02 23:28:11 millert Exp $ */
+/* $OpenBSD: union_vfsops.c,v 1.16 2003/08/14 07:46:40 mickey Exp $ */
/* $NetBSD: union_vfsops.c,v 1.10 1995/06/18 14:47:47 cgd Exp $ */
/*
@@ -495,7 +495,7 @@ union_statfs(mp, sbp, p)
#define union_checkexp ((int (*)(struct mount *, struct mbuf *, \
int *, struct ucred **))eopnotsupp)
-struct vfsops union_vfsops = {
+const struct vfsops union_vfsops = {
union_mount,
union_start,
union_unmount,
diff --git a/sys/msdosfs/msdosfs_vfsops.c b/sys/msdosfs/msdosfs_vfsops.c
index faaaa3cc65c..7024ed5cdfe 100644
--- a/sys/msdosfs/msdosfs_vfsops.c
+++ b/sys/msdosfs/msdosfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msdosfs_vfsops.c,v 1.31 2003/04/14 17:55:07 tedu Exp $ */
+/* $OpenBSD: msdosfs_vfsops.c,v 1.32 2003/08/14 07:46:40 mickey Exp $ */
/* $NetBSD: msdosfs_vfsops.c,v 1.48 1997/10/18 02:54:57 briggs Exp $ */
/*-
@@ -854,7 +854,7 @@ msdosfs_check_export(mp, nam, exflagsp, credanonp)
#define msdosfs_sysctl ((int (*)(int *, u_int, void *, size_t *, void *, \
size_t, struct proc *))eopnotsupp)
-struct vfsops msdosfs_vfsops = {
+const struct vfsops msdosfs_vfsops = {
msdosfs_mount,
msdosfs_start,
msdosfs_unmount,
diff --git a/sys/nfs/nfs_vfsops.c b/sys/nfs/nfs_vfsops.c
index 1f836ebd249..fca16ff1f8c 100644
--- a/sys/nfs/nfs_vfsops.c
+++ b/sys/nfs/nfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_vfsops.c,v 1.50 2003/06/02 23:28:20 millert Exp $ */
+/* $OpenBSD: nfs_vfsops.c,v 1.51 2003/08/14 07:46:40 mickey Exp $ */
/* $NetBSD: nfs_vfsops.c,v 1.46.4.1 1996/05/25 22:40:35 fvdl Exp $ */
/*
@@ -78,7 +78,7 @@ int nfs_checkexp(struct mount *mp, struct mbuf *nam,
/*
* nfs vfs operations.
*/
-struct vfsops nfs_vfsops = {
+const struct vfsops nfs_vfsops = {
nfs_mount,
nfs_start,
nfs_unmount,
diff --git a/sys/ntfs/ntfs_vfsops.c b/sys/ntfs/ntfs_vfsops.c
index 25a080594df..1423e446f67 100644
--- a/sys/ntfs/ntfs_vfsops.c
+++ b/sys/ntfs/ntfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntfs_vfsops.c,v 1.4 2003/05/24 21:48:05 tedu Exp $ */
+/* $OpenBSD: ntfs_vfsops.c,v 1.5 2003/08/14 07:46:40 mickey Exp $ */
/* $NetBSD: ntfs_vfsops.c,v 1.7 2003/04/24 07:50:19 christos Exp $ */
/*-
@@ -1165,7 +1165,7 @@ const struct vnodeopv_desc * const ntfs_vnodeopv_descs[] = {
NULL,
};
-struct vfsops ntfs_vfsops = {
+const struct vfsops ntfs_vfsops = {
ntfs_mount,
ntfs_start,
ntfs_unmount,
diff --git a/sys/sys/mount.h b/sys/sys/mount.h
index 38dbc9dda00..c8375758e52 100644
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount.h,v 1.57 2003/08/05 21:27:15 tedu Exp $ */
+/* $OpenBSD: mount.h,v 1.58 2003/08/14 07:46:40 mickey Exp $ */
/* $NetBSD: mount.h,v 1.48 1996/02/18 11:55:47 fvdl Exp $ */
/*
@@ -363,7 +363,7 @@ LIST_HEAD(vnodelst, vnode);
struct mount {
CIRCLEQ_ENTRY(mount) mnt_list; /* mount list */
- struct vfsops *mnt_op; /* operations on fs */
+ const struct vfsops *mnt_op; /* operations on fs */
struct vfsconf *mnt_vfc; /* configuration info */
struct vnode *mnt_vnodecovered; /* vnode we mounted on */
struct vnode *mnt_syncer; /* syncer vnode */
@@ -452,7 +452,7 @@ struct mount {
* mount time to identify the requested filesystem.
*/
struct vfsconf {
- struct vfsops *vfc_vfsops; /* filesystem operations vector */
+ const struct vfsops *vfc_vfsops; /* filesystem operations vector */
char vfc_name[MFSNAMELEN]; /* filesystem type name */
int vfc_typenum; /* historic filesystem type number */
int vfc_refcount; /* number mounted of this type */
diff --git a/sys/ufs/ext2fs/ext2fs_vfsops.c b/sys/ufs/ext2fs/ext2fs_vfsops.c
index 353caa470dd..ee61f0a73eb 100644
--- a/sys/ufs/ext2fs/ext2fs_vfsops.c
+++ b/sys/ufs/ext2fs/ext2fs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ext2fs_vfsops.c,v 1.28 2003/07/06 09:02:11 tedu Exp $ */
+/* $OpenBSD: ext2fs_vfsops.c,v 1.29 2003/08/14 07:46:40 mickey Exp $ */
/* $NetBSD: ext2fs_vfsops.c,v 1.1 1997/06/11 09:34:07 bouyer Exp $ */
/*
@@ -81,7 +81,7 @@ struct vnodeopv_desc *ext2fs_vnodeopv_descs[] = {
NULL,
};
-struct vfsops ext2fs_vfsops = {
+const struct vfsops ext2fs_vfsops = {
ext2fs_mount,
ufs_start,
ext2fs_unmount,
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index 8797100a7fb..a5f771cb907 100644
--- a/sys/ufs/ffs/ffs_vfsops.c
+++ b/sys/ufs/ffs/ffs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_vfsops.c,v 1.57 2003/07/10 22:32:20 tedu Exp $ */
+/* $OpenBSD: ffs_vfsops.c,v 1.58 2003/08/14 07:46:40 mickey Exp $ */
/* $NetBSD: ffs_vfsops.c,v 1.19 1996/02/09 22:22:26 christos Exp $ */
/*
@@ -68,7 +68,7 @@ int ffs_sbupdate(struct ufsmount *, int);
int ffs_reload_vnode(struct vnode *, void *);
int ffs_sync_vnode(struct vnode *, void *);
-struct vfsops ffs_vfsops = {
+const struct vfsops ffs_vfsops = {
ffs_mount,
ufs_start,
ffs_unmount,
diff --git a/sys/ufs/lfs/lfs_vfsops.c b/sys/ufs/lfs/lfs_vfsops.c
index 802c7dcaeab..5682ca42318 100644
--- a/sys/ufs/lfs/lfs_vfsops.c
+++ b/sys/ufs/lfs/lfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lfs_vfsops.c,v 1.17 2003/06/02 23:28:23 millert Exp $ */
+/* $OpenBSD: lfs_vfsops.c,v 1.18 2003/08/14 07:46:40 mickey Exp $ */
/* $NetBSD: lfs_vfsops.c,v 1.11 1996/03/25 12:53:35 pk Exp $ */
/*
@@ -60,7 +60,7 @@
int lfs_mountfs(struct vnode *, struct mount *, struct proc *);
-struct vfsops lfs_vfsops = {
+const struct vfsops lfs_vfsops = {
lfs_mount,
ufs_start,
lfs_unmount,
diff --git a/sys/ufs/mfs/mfs_vfsops.c b/sys/ufs/mfs/mfs_vfsops.c
index bc0fdec4287..d7ab52c890f 100644
--- a/sys/ufs/mfs/mfs_vfsops.c
+++ b/sys/ufs/mfs/mfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfs_vfsops.c,v 1.25 2003/06/02 23:28:23 millert Exp $ */
+/* $OpenBSD: mfs_vfsops.c,v 1.26 2003/08/14 07:46:40 mickey Exp $ */
/* $NetBSD: mfs_vfsops.c,v 1.10 1996/02/09 22:31:28 christos Exp $ */
/*
@@ -66,7 +66,7 @@ extern int (**mfs_vnodeop_p)(void *);
/*
* mfs vfs operations.
*/
-struct vfsops mfs_vfsops = {
+const struct vfsops mfs_vfsops = {
mfs_mount,
mfs_start,
ffs_unmount,
diff --git a/sys/xfs/xfs_vfsops-openbsd.c b/sys/xfs/xfs_vfsops-openbsd.c
index 87ff61f0595..d6724665dc8 100644
--- a/sys/xfs/xfs_vfsops-openbsd.c
+++ b/sys/xfs/xfs_vfsops-openbsd.c
@@ -80,7 +80,7 @@ xfs_init(struct vfsconf *vfs)
return 0;
}
-struct vfsops xfs_vfsops = {
+const struct vfsops xfs_vfsops = {
#ifdef HAVE_STRUCT_VFSOPS_VFS_MOUNT
xfs_mount_common,
#else