* add MOUNT_PUFFS

* add macro VFS_PROTOS(fsname), which generates file system vfs prototypes
This commit is contained in:
pooka 2006-10-22 22:50:10 +00:00
parent 7ad65999e3
commit 17015342cb
1 changed files with 26 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: mount.h,v 1.149 2006/10/20 18:58:12 reinoud Exp $ */
/* $NetBSD: mount.h,v 1.150 2006/10/22 22:50:10 pooka Exp $ */
/*
* Copyright (c) 1989, 1991, 1993
@ -83,6 +83,7 @@
#define MOUNT_TMPFS "tmpfs" /* Efficient memory file-system */
#define MOUNT_UDF "udf" /* UDF CD/DVD filesystem */
#define MOUNT_SYSVBFS "sysvbfs" /* System V Boot Filesystem */
#define MOUNT_PUFFS "puffs" /* Pass-to-Userspace filesystem */
/*
* Structure per mounted file system. Each mounted file system has an
@ -183,6 +184,30 @@ struct vnodeopv_desc;
struct kauth_cred;
#endif
#define VFS_PROTOS(fsname) \
int fsname##_mount(struct mount *, const char *, void *, \
struct nameidata *, struct lwp *); \
int fsname##_start(struct mount *, int, struct lwp *); \
int fsname##_unmount(struct mount *, int, struct lwp *); \
int fsname##_root(struct mount *, struct vnode **); \
int fsname##_quotactl(struct mount *, int, uid_t, void *, \
struct lwp *); \
int fsname##_statvfs(struct mount *, struct statvfs *, \
struct lwp *); \
int fsname##_sync(struct mount *, int, struct kauth_cred *, \
struct lwp *); \
int fsname##_vget(struct mount *, ino_t, struct vnode **); \
int fsname##_fhtovp(struct mount *, struct fid *, struct vnode **); \
int fsname##_vptofh(struct vnode *, struct fid *); \
void fsname##_init(void); \
void fsname##_reinit(void); \
void fsname##_done(void); \
int fsname##_mountroot(void); \
int fsname##_snapshot(struct mount *, struct vnode *, \
struct timespec *); \
int fsname##_extattrctl(struct mount *, int, struct vnode *, int, \
const char *, struct lwp *);
struct vfsops {
const char *vfs_name;
int (*vfs_mount) (struct mount *, const char *, void *,