diff --git a/sys/fs/puffs/puffs_msgif.c b/sys/fs/puffs/puffs_msgif.c index 8095acba2807..153eef8e6508 100644 --- a/sys/fs/puffs/puffs_msgif.c +++ b/sys/fs/puffs/puffs_msgif.c @@ -1,4 +1,4 @@ -/* $NetBSD: puffs_msgif.c,v 1.4 2006/11/07 22:10:18 pooka Exp $ */ +/* $NetBSD: puffs_msgif.c,v 1.5 2006/11/09 13:09:34 pooka Exp $ */ /* * Copyright (c) 2005, 2006 Antti Kantee. All Rights Reserved. @@ -33,7 +33,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: puffs_msgif.c,v 1.4 2006/11/07 22:10:18 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: puffs_msgif.c,v 1.5 2006/11/09 13:09:34 pooka Exp $"); #include #include @@ -659,7 +659,7 @@ puffs_fop_ioctl(struct file *fp, u_long cmd, void *data, struct lwp *l) return puffssizeop(pmp, data); break; - case PUFFSMOUNTOP: + case PUFFSSTARTOP: return puffs_start2(pmp, data); /* already done in sys_ioctl() */ diff --git a/sys/fs/puffs/puffs_msgif.h b/sys/fs/puffs/puffs_msgif.h index be2cfb96186b..f4119cfdf3b4 100644 --- a/sys/fs/puffs/puffs_msgif.h +++ b/sys/fs/puffs/puffs_msgif.h @@ -1,4 +1,4 @@ -/* $NetBSD: puffs_msgif.h,v 1.5 2006/11/07 22:10:18 pooka Exp $ */ +/* $NetBSD: puffs_msgif.h,v 1.6 2006/11/09 13:09:34 pooka Exp $ */ /* * Copyright (c) 2005, 2006 Antti Kantee. All Rights Reserved. @@ -51,7 +51,7 @@ #define PUFFSOP_OPCMASK 0x03 #define PUFFSOP_OPCLASS(a) ((a) & PUFFSOP_OPCMASK) -#define PUFFSOP_WANTREPLY(a) (((a) & PUFFSOPFLAG_FAF) == 0) +#define PUFFSOP_WANTREPLY(a) (((a) & PUFFSOPFLAG_FAF) == 0) enum { PUFFS_VFS_MOUNT, PUFFS_VFS_START, PUFFS_VFS_UNMOUNT, @@ -157,10 +157,10 @@ struct puffs_cred { #define PUFFCRED_CRED_FSCRED 2 -#define PUFFSGETOP _IOWR('p', 1, struct puffs_req) -#define PUFFSPUTOP _IOWR('p', 2, struct puffs_req) -#define PUFFSSIZEOP _IOWR('p', 3, struct puffs_sizeop) -#define PUFFSMOUNTOP _IOWR('p', 4, struct puffs_vfsreq_start) +#define PUFFSSTARTOP _IOWR('p', 1, struct puffs_startreq) +#define PUFFSGETOP _IOWR('p', 2, struct puffs_req) +#define PUFFSPUTOP _IOWR('p', 3, struct puffs_req) +#define PUFFSSIZEOP _IOWR('p', 4, struct puffs_sizeop) /* * 4x MAXPHYS is the max size the system will attempt to copy, @@ -197,9 +197,10 @@ struct puffs_cn { #define PUFFSLOOKUP_NOFOLLOW 0x08 /* don't follow symlinks */ #define PUFFSLOOKUP_OPTIONS 0x0c -struct puffs_vfsreq_start { - fsid_t psr_fsidx; /* fsid value */ - void *psr_cookie; /* root node cookie */ + +struct puffs_startreq { + void *psr_cookie; /* IN: root node cookie */ + fsid_t psr_fsidx; /* OUT: fsid value */ }; /* diff --git a/sys/fs/puffs/puffs_sys.h b/sys/fs/puffs/puffs_sys.h index 2ac1db3b09b3..2131c37b2e41 100644 --- a/sys/fs/puffs/puffs_sys.h +++ b/sys/fs/puffs/puffs_sys.h @@ -1,4 +1,4 @@ -/* $NetBSD: puffs_sys.h,v 1.6 2006/11/07 22:10:18 pooka Exp $ */ +/* $NetBSD: puffs_sys.h,v 1.7 2006/11/09 13:09:34 pooka Exp $ */ /* * Copyright (c) 2005, 2006 Antti Kantee. All Rights Reserved. @@ -152,7 +152,7 @@ struct puffs_node { LIST_ENTRY(puffs_node) pn_entries; }; -int puffs_start2(struct puffs_mount *, struct puffs_vfsreq_start *); +int puffs_start2(struct puffs_mount *, struct puffs_startreq *); int puffs_vfstouser(struct puffs_mount *, int, void *, size_t); int puffs_vntouser(struct puffs_mount *, int, void *, size_t, void *, diff --git a/sys/fs/puffs/puffs_vfsops.c b/sys/fs/puffs/puffs_vfsops.c index 7f8fe3d7ec79..9431f06bdcda 100644 --- a/sys/fs/puffs/puffs_vfsops.c +++ b/sys/fs/puffs/puffs_vfsops.c @@ -1,4 +1,4 @@ -/* $NetBSD: puffs_vfsops.c,v 1.6 2006/11/07 22:10:18 pooka Exp $ */ +/* $NetBSD: puffs_vfsops.c,v 1.7 2006/11/09 13:09:34 pooka Exp $ */ /* * Copyright (c) 2005, 2006 Antti Kantee. All Rights Reserved. @@ -33,7 +33,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.6 2006/11/07 22:10:18 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.7 2006/11/09 13:09:34 pooka Exp $"); #include #include @@ -143,7 +143,7 @@ puffs_mount(struct mount *mp, const char *path, void *data, * from userspace. */ int -puffs_start2(struct puffs_mount *pmp, struct puffs_vfsreq_start *sreq) +puffs_start2(struct puffs_mount *pmp, struct puffs_startreq *sreq) { struct puffs_node *pn; struct mount *mp;