summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2019-12-26 13:28:51 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2019-12-26 13:28:51 +0000
commit63be33c9a551c533eb1c57e2987094e1f4ed6e53 (patch)
tree86e20a781c6d97691fe6007e8a43825e1c4020aa /sys
parentc22e4d7d5d7943fda9d671aff1a3f48811a21f44 (diff)
Convert struct vfsops initializer to C99 style.
OK visa@
Diffstat (limited to 'sys')
-rw-r--r--sys/isofs/cd9660/cd9660_vfsops.c28
-rw-r--r--sys/isofs/udf/udf_vfsops.c28
-rw-r--r--sys/miscfs/fuse/fuse_vfsops.c28
-rw-r--r--sys/msdosfs/msdosfs_vfsops.c28
-rw-r--r--sys/nfs/nfs_vfsops.c28
-rw-r--r--sys/ntfs/ntfs_vfsops.c28
-rw-r--r--sys/tmpfs/tmpfs_vfsops.c30
-rw-r--r--sys/ufs/ext2fs/ext2fs_vfsops.c28
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c28
-rw-r--r--sys/ufs/mfs/mfs_vfsops.c28
10 files changed, 141 insertions, 141 deletions
diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c
index a84c22e0b52..9807c39bd2e 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.92 2019/07/25 01:43:20 cheloha Exp $ */
+/* $OpenBSD: cd9660_vfsops.c,v 1.93 2019/12/26 13:28:49 bluhm Exp $ */
/* $NetBSD: cd9660_vfsops.c,v 1.26 1997/06/13 15:38:58 pk Exp $ */
/*-
@@ -61,19 +61,19 @@
#include <isofs/cd9660/cd9660_node.h>
const struct vfsops cd9660_vfsops = {
- cd9660_mount,
- cd9660_start,
- cd9660_unmount,
- cd9660_root,
- cd9660_quotactl,
- cd9660_statfs,
- cd9660_sync,
- cd9660_vget,
- cd9660_fhtovp,
- cd9660_vptofh,
- cd9660_init,
- cd9660_sysctl,
- cd9660_check_export
+ .vfs_mount = cd9660_mount,
+ .vfs_start = cd9660_start,
+ .vfs_unmount = cd9660_unmount,
+ .vfs_root = cd9660_root,
+ .vfs_quotactl = cd9660_quotactl,
+ .vfs_statfs = cd9660_statfs,
+ .vfs_sync = cd9660_sync,
+ .vfs_vget = cd9660_vget,
+ .vfs_fhtovp = cd9660_fhtovp,
+ .vfs_vptofh = cd9660_vptofh,
+ .vfs_init = cd9660_init,
+ .vfs_sysctl = cd9660_sysctl,
+ .vfs_checkexp = cd9660_check_export,
};
/*
diff --git a/sys/isofs/udf/udf_vfsops.c b/sys/isofs/udf/udf_vfsops.c
index 190c65700ca..384ddca7383 100644
--- a/sys/isofs/udf/udf_vfsops.c
+++ b/sys/isofs/udf/udf_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udf_vfsops.c,v 1.66 2019/07/25 01:43:21 cheloha Exp $ */
+/* $OpenBSD: udf_vfsops.c,v 1.67 2019/12/26 13:28:49 bluhm Exp $ */
/*
* Copyright (c) 2001, 2002 Scott Long <scottl@freebsd.org>
@@ -83,19 +83,19 @@ int udf_get_mpartmap(struct umount *, struct part_map_meta *);
int udf_mountfs(struct vnode *, struct mount *, uint32_t, struct proc *);
const struct vfsops udf_vfsops = {
- .vfs_fhtovp = udf_fhtovp,
- .vfs_init = udf_init,
- .vfs_mount = udf_mount,
- .vfs_start = udf_start,
- .vfs_root = udf_root,
- .vfs_quotactl = udf_quotactl,
- .vfs_statfs = udf_statfs,
- .vfs_sync = udf_sync,
- .vfs_unmount = udf_unmount,
- .vfs_vget = udf_vget,
- .vfs_vptofh = udf_vptofh,
- .vfs_sysctl = udf_sysctl,
- .vfs_checkexp = udf_checkexp,
+ .vfs_mount = udf_mount,
+ .vfs_start = udf_start,
+ .vfs_unmount = udf_unmount,
+ .vfs_root = udf_root,
+ .vfs_quotactl = udf_quotactl,
+ .vfs_statfs = udf_statfs,
+ .vfs_sync = udf_sync,
+ .vfs_vget = udf_vget,
+ .vfs_fhtovp = udf_fhtovp,
+ .vfs_vptofh = udf_vptofh,
+ .vfs_init = udf_init,
+ .vfs_sysctl = udf_sysctl,
+ .vfs_checkexp = udf_checkexp,
};
int
diff --git a/sys/miscfs/fuse/fuse_vfsops.c b/sys/miscfs/fuse/fuse_vfsops.c
index cf459696944..561c77f9aa4 100644
--- a/sys/miscfs/fuse/fuse_vfsops.c
+++ b/sys/miscfs/fuse/fuse_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fuse_vfsops.c,v 1.42 2018/07/17 13:12:08 helg Exp $ */
+/* $OpenBSD: fuse_vfsops.c,v 1.43 2019/12/26 13:28:49 bluhm Exp $ */
/*
* Copyright (c) 2012-2013 Sylvestre Gallon <ccna.syl@gmail.com>
*
@@ -51,19 +51,19 @@ int fusefs_checkexp(struct mount *, struct mbuf *, int *,
struct ucred **);
const struct vfsops fusefs_vfsops = {
- fusefs_mount,
- fusefs_start,
- fusefs_unmount,
- fusefs_root,
- fusefs_quotactl,
- fusefs_statfs,
- fusefs_sync,
- fusefs_vget,
- fusefs_fhtovp,
- fusefs_vptofh,
- fusefs_init,
- fusefs_sysctl,
- fusefs_checkexp
+ .vfs_mount = fusefs_mount,
+ .vfs_start = fusefs_start,
+ .vfs_unmount = fusefs_unmount,
+ .vfs_root = fusefs_root,
+ .vfs_quotactl = fusefs_quotactl,
+ .vfs_statfs = fusefs_statfs,
+ .vfs_sync = fusefs_sync,
+ .vfs_vget = fusefs_vget,
+ .vfs_fhtovp = fusefs_fhtovp,
+ .vfs_vptofh = fusefs_vptofh,
+ .vfs_init = fusefs_init,
+ .vfs_sysctl = fusefs_sysctl,
+ .vfs_checkexp = fusefs_checkexp,
};
struct pool fusefs_fbuf_pool;
diff --git a/sys/msdosfs/msdosfs_vfsops.c b/sys/msdosfs/msdosfs_vfsops.c
index 58d0c95ec65..ddf2c1f1d55 100644
--- a/sys/msdosfs/msdosfs_vfsops.c
+++ b/sys/msdosfs/msdosfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msdosfs_vfsops.c,v 1.91 2019/07/25 01:43:21 cheloha Exp $ */
+/* $OpenBSD: msdosfs_vfsops.c,v 1.92 2019/12/26 13:28:49 bluhm Exp $ */
/* $NetBSD: msdosfs_vfsops.c,v 1.48 1997/10/18 02:54:57 briggs Exp $ */
/*-
@@ -791,17 +791,17 @@ msdosfs_check_export(struct mount *mp, struct mbuf *nam, int *exflagsp,
size_t, struct proc *))eopnotsupp)
const struct vfsops msdosfs_vfsops = {
- msdosfs_mount,
- msdosfs_start,
- msdosfs_unmount,
- msdosfs_root,
- msdosfs_quotactl,
- msdosfs_statfs,
- msdosfs_sync,
- msdosfs_vget,
- msdosfs_fhtovp,
- msdosfs_vptofh,
- msdosfs_init,
- msdosfs_sysctl,
- msdosfs_check_export
+ .vfs_mount = msdosfs_mount,
+ .vfs_start = msdosfs_start,
+ .vfs_unmount = msdosfs_unmount,
+ .vfs_root = msdosfs_root,
+ .vfs_quotactl = msdosfs_quotactl,
+ .vfs_statfs = msdosfs_statfs,
+ .vfs_sync = msdosfs_sync,
+ .vfs_vget = msdosfs_vget,
+ .vfs_fhtovp = msdosfs_fhtovp,
+ .vfs_vptofh = msdosfs_vptofh,
+ .vfs_init = msdosfs_init,
+ .vfs_sysctl = msdosfs_sysctl,
+ .vfs_checkexp = msdosfs_check_export,
};
diff --git a/sys/nfs/nfs_vfsops.c b/sys/nfs/nfs_vfsops.c
index 024416981e2..fae12217f71 100644
--- a/sys/nfs/nfs_vfsops.c
+++ b/sys/nfs/nfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_vfsops.c,v 1.122 2018/07/02 20:56:22 bluhm Exp $ */
+/* $OpenBSD: nfs_vfsops.c,v 1.123 2019/12/26 13:28:49 bluhm Exp $ */
/* $NetBSD: nfs_vfsops.c,v 1.46.4.1 1996/05/25 22:40:35 fvdl Exp $ */
/*
@@ -96,19 +96,19 @@ int nfs_fhtovp(struct mount *, struct fid *, struct vnode **);
* nfs vfs operations.
*/
const struct vfsops nfs_vfsops = {
- nfs_mount,
- nfs_start,
- nfs_unmount,
- nfs_root,
- nfs_quotactl,
- nfs_statfs,
- nfs_sync,
- nfs_vget,
- nfs_fhtovp,
- nfs_vptofh,
- nfs_vfs_init,
- nfs_sysctl,
- nfs_checkexp
+ .vfs_mount = nfs_mount,
+ .vfs_start = nfs_start,
+ .vfs_unmount = nfs_unmount,
+ .vfs_root = nfs_root,
+ .vfs_quotactl = nfs_quotactl,
+ .vfs_statfs = nfs_statfs,
+ .vfs_sync = nfs_sync,
+ .vfs_vget = nfs_vget,
+ .vfs_fhtovp = nfs_fhtovp,
+ .vfs_vptofh = nfs_vptofh,
+ .vfs_init = nfs_vfs_init,
+ .vfs_sysctl = nfs_sysctl,
+ .vfs_checkexp = nfs_checkexp,
};
/*
diff --git a/sys/ntfs/ntfs_vfsops.c b/sys/ntfs/ntfs_vfsops.c
index c734e3d6fca..edeba10d332 100644
--- a/sys/ntfs/ntfs_vfsops.c
+++ b/sys/ntfs/ntfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntfs_vfsops.c,v 1.62 2019/07/25 01:43:21 cheloha Exp $ */
+/* $OpenBSD: ntfs_vfsops.c,v 1.63 2019/12/26 13:28:49 bluhm Exp $ */
/* $NetBSD: ntfs_vfsops.c,v 1.7 2003/04/24 07:50:19 christos Exp $ */
/*-
@@ -782,17 +782,17 @@ ntfs_vget(struct mount *mp, ino_t ino, struct vnode **vpp)
}
const struct vfsops ntfs_vfsops = {
- ntfs_mount,
- ntfs_start,
- ntfs_unmount,
- ntfs_root,
- ntfs_quotactl,
- ntfs_statfs,
- ntfs_sync,
- ntfs_vget,
- ntfs_fhtovp,
- ntfs_vptofh,
- ntfs_init,
- ntfs_sysctl,
- ntfs_checkexp,
+ .vfs_mount = ntfs_mount,
+ .vfs_start = ntfs_start,
+ .vfs_unmount = ntfs_unmount,
+ .vfs_root = ntfs_root,
+ .vfs_quotactl = ntfs_quotactl,
+ .vfs_statfs = ntfs_statfs,
+ .vfs_sync = ntfs_sync,
+ .vfs_vget = ntfs_vget,
+ .vfs_fhtovp = ntfs_fhtovp,
+ .vfs_vptofh = ntfs_vptofh,
+ .vfs_init = ntfs_init,
+ .vfs_sysctl = ntfs_sysctl,
+ .vfs_checkexp = ntfs_checkexp,
};
diff --git a/sys/tmpfs/tmpfs_vfsops.c b/sys/tmpfs/tmpfs_vfsops.c
index 41f59abda3b..4f553fd8766 100644
--- a/sys/tmpfs/tmpfs_vfsops.c
+++ b/sys/tmpfs/tmpfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmpfs_vfsops.c,v 1.16 2018/04/06 15:14:27 patrick Exp $ */
+/* $OpenBSD: tmpfs_vfsops.c,v 1.17 2019/12/26 13:28:49 bluhm Exp $ */
/* $NetBSD: tmpfs_vfsops.c,v 1.52 2011/09/27 01:10:43 christos Exp $ */
/*
@@ -358,18 +358,18 @@ tmpfs_sync(struct mount *mp, int waitfor, int stall, struct ucred *cred,
* tmpfs vfs operations.
*/
-struct vfsops tmpfs_vfsops = {
- tmpfs_mount, /* vfs_mount */
- tmpfs_start, /* vfs_start */
- tmpfs_unmount, /* vfs_unmount */
- tmpfs_root, /* vfs_root */
- (void *)eopnotsupp, /* vfs_quotactl */
- tmpfs_statfs, /* vfs_statfs */
- tmpfs_sync, /* vfs_sync */
- tmpfs_vget, /* vfs_vget */
- tmpfs_fhtovp, /* vfs_fhtovp */
- tmpfs_vptofh, /* vfs_vptofh */
- tmpfs_init, /* vfs_init */
- (void *)eopnotsupp, /* vfs_sysctl */
- (void *)eopnotsupp,
+const struct vfsops tmpfs_vfsops = {
+ .vfs_mount = tmpfs_mount,
+ .vfs_start = tmpfs_start,
+ .vfs_unmount = tmpfs_unmount,
+ .vfs_root = tmpfs_root,
+ .vfs_quotactl = (void *)eopnotsupp,
+ .vfs_statfs = tmpfs_statfs,
+ .vfs_sync = tmpfs_sync,
+ .vfs_vget = tmpfs_vget,
+ .vfs_fhtovp = tmpfs_fhtovp,
+ .vfs_vptofh = tmpfs_vptofh,
+ .vfs_init = tmpfs_init,
+ .vfs_sysctl = (void *)eopnotsupp,
+ .vfs_checkexp = (void *)eopnotsupp,
};
diff --git a/sys/ufs/ext2fs/ext2fs_vfsops.c b/sys/ufs/ext2fs/ext2fs_vfsops.c
index 975104af0b2..0951da816fe 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.113 2019/07/25 01:43:21 cheloha Exp $ */
+/* $OpenBSD: ext2fs_vfsops.c,v 1.114 2019/12/26 13:28:49 bluhm Exp $ */
/* $NetBSD: ext2fs_vfsops.c,v 1.1 1997/06/11 09:34:07 bouyer Exp $ */
/*
@@ -70,19 +70,19 @@ int ext2fs_sbupdate(struct ufsmount *, int);
static int e2fs_sbcheck(struct ext2fs *, int);
const struct vfsops ext2fs_vfsops = {
- ext2fs_mount,
- ufs_start,
- ext2fs_unmount,
- ufs_root,
- ufs_quotactl,
- ext2fs_statfs,
- ext2fs_sync,
- ext2fs_vget,
- ext2fs_fhtovp,
- ext2fs_vptofh,
- ext2fs_init,
- ext2fs_sysctl,
- ufs_check_export
+ .vfs_mount = ext2fs_mount,
+ .vfs_start = ufs_start,
+ .vfs_unmount = ext2fs_unmount,
+ .vfs_root = ufs_root,
+ .vfs_quotactl = ufs_quotactl,
+ .vfs_statfs = ext2fs_statfs,
+ .vfs_sync = ext2fs_sync,
+ .vfs_vget = ext2fs_vget,
+ .vfs_fhtovp = ext2fs_fhtovp,
+ .vfs_vptofh = ext2fs_vptofh,
+ .vfs_init = ext2fs_init,
+ .vfs_sysctl = ext2fs_sysctl,
+ .vfs_checkexp = ufs_check_export,
};
struct pool ext2fs_inode_pool;
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index 00b818bad97..201ccdacb50 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.181 2019/07/25 01:43:21 cheloha Exp $ */
+/* $OpenBSD: ffs_vfsops.c,v 1.182 2019/12/26 13:28:49 bluhm Exp $ */
/* $NetBSD: ffs_vfsops.c,v 1.19 1996/02/09 22:22:26 christos Exp $ */
/*
@@ -73,19 +73,19 @@ void ffs1_compat_read(struct fs *, struct ufsmount *, daddr_t);
void ffs1_compat_write(struct fs *, struct ufsmount *);
const struct vfsops ffs_vfsops = {
- ffs_mount,
- ufs_start,
- ffs_unmount,
- ufs_root,
- ufs_quotactl,
- ffs_statfs,
- ffs_sync,
- ffs_vget,
- ffs_fhtovp,
- ffs_vptofh,
- ffs_init,
- ffs_sysctl,
- ufs_check_export
+ .vfs_mount = ffs_mount,
+ .vfs_start = ufs_start,
+ .vfs_unmount = ffs_unmount,
+ .vfs_root = ufs_root,
+ .vfs_quotactl = ufs_quotactl,
+ .vfs_statfs = ffs_statfs,
+ .vfs_sync = ffs_sync,
+ .vfs_vget = ffs_vget,
+ .vfs_fhtovp = ffs_fhtovp,
+ .vfs_vptofh = ffs_vptofh,
+ .vfs_init = ffs_init,
+ .vfs_sysctl = ffs_sysctl,
+ .vfs_checkexp = ufs_check_export,
};
struct inode_vtbl ffs_vtbl = {
diff --git a/sys/ufs/mfs/mfs_vfsops.c b/sys/ufs/mfs/mfs_vfsops.c
index ff3bc46102b..a5081e1abdb 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.56 2019/11/25 11:33:51 mpi Exp $ */
+/* $OpenBSD: mfs_vfsops.c,v 1.57 2019/12/26 13:28:50 bluhm Exp $ */
/* $NetBSD: mfs_vfsops.c,v 1.10 1996/02/09 22:31:28 christos Exp $ */
/*
@@ -60,19 +60,19 @@ static int mfs_minor; /* used for building internal dev_t */
* mfs vfs operations.
*/
const struct vfsops mfs_vfsops = {
- mfs_mount,
- mfs_start,
- ffs_unmount,
- ufs_root,
- ufs_quotactl,
- ffs_statfs,
- ffs_sync,
- ffs_vget,
- ffs_fhtovp,
- ffs_vptofh,
- mfs_init,
- ffs_sysctl,
- mfs_checkexp
+ .vfs_mount = mfs_mount,
+ .vfs_start = mfs_start,
+ .vfs_unmount = ffs_unmount,
+ .vfs_root = ufs_root,
+ .vfs_quotactl = ufs_quotactl,
+ .vfs_statfs = ffs_statfs,
+ .vfs_sync = ffs_sync,
+ .vfs_vget = ffs_vget,
+ .vfs_fhtovp = ffs_fhtovp,
+ .vfs_vptofh = ffs_vptofh,
+ .vfs_init = mfs_init,
+ .vfs_sysctl = ffs_sysctl,
+ .vfs_checkexp = mfs_checkexp,
};
/*