diff options
Diffstat (limited to 'sys/fs/unionfs')
-rw-r--r-- | sys/fs/unionfs/union_vfsops.c | 33 |
1 files changed, 10 insertions, 23 deletions
diff --git a/sys/fs/unionfs/union_vfsops.c b/sys/fs/unionfs/union_vfsops.c index 0da935e..dae39b5 100644 --- a/sys/fs/unionfs/union_vfsops.c +++ b/sys/fs/unionfs/union_vfsops.c @@ -57,14 +57,11 @@ static MALLOC_DEFINE(M_UNIONFSMNT, "UNION mount", "UNION mount structure"); -extern int union_init(struct vfsconf *); -static int union_mount(struct mount *mp, struct nameidata *ndp, - struct thread *td); -static int union_root(struct mount *mp, struct vnode **vpp); -static int union_statfs(struct mount *mp, struct statfs *sbp, - struct thread *td); -static int union_unmount(struct mount *mp, int mntflags, - struct thread *td); +extern vfs_init_t union_init; +static vfs_root_t union_root; +static vfs_nmount_t union_mount; +static vfs_statfs_t union_statfs; +static vfs_unmount_t union_unmount; /* * Mount union filesystem. @@ -496,21 +493,11 @@ union_statfs(mp, sbp, td) } static struct vfsops union_vfsops = { - NULL, - vfs_stdstart, /* underlying start already done */ - union_unmount, - union_root, - vfs_stdquotactl, - union_statfs, - vfs_stdnosync, /* XXX assumes no cached data on union level */ - vfs_stdvget, - vfs_stdfhtovp, - vfs_stdcheckexp, - vfs_stdvptofh, - union_init, - vfs_stduninit, - vfs_stdextattrctl, - union_mount, + .vfs_init = union_init, + .vfs_nmount = union_mount, + .vfs_root = union_root, + .vfs_statfs = union_statfs, + .vfs_unmount = union_unmount, }; VFS_SET(union_vfsops, unionfs, VFCF_LOOPBACK); |