|
|
| version 1.7, 2004/03/01 06:33:22 | version 1.8, 2004/04/21 16:55:09 |
|---|---|
| Line 80 static int nullfs_extattrctl(struct moun | Line 80 static int nullfs_extattrctl(struct moun |
| * Mount null layer | * Mount null layer |
| */ | */ |
| static int | static int |
| nullfs_mount(mp, path, data, ndp, td) | nullfs_mount(struct mount *mp, char *path, caddr_t data, struct nameidata *ndp, |
| struct mount *mp; | struct thread *td) |
| char *path; | |
| caddr_t data; | |
| struct nameidata *ndp; | |
| struct thread *td; | |
| { | { |
| int error = 0; | int error = 0; |
| struct null_args args; | struct null_args args; |
| Line 273 nullfs_root(struct mount *mp, struct vno | Line 269 nullfs_root(struct mount *mp, struct vno |
| } | } |
| static int | static int |
| nullfs_quotactl(mp, cmd, uid, arg, td) | nullfs_quotactl(struct mount *mp, int cmd, uid_t uid, caddr_t arg, |
| struct mount *mp; | struct thread *td) |
| int cmd; | |
| uid_t uid; | |
| caddr_t arg; | |
| struct thread *td; | |
| { | { |
| return VFS_QUOTACTL(MOUNTTONULLMOUNT(mp)->nullm_vfs, cmd, uid, arg, td); | return VFS_QUOTACTL(MOUNTTONULLMOUNT(mp)->nullm_vfs, cmd, uid, arg, td); |
| } | } |
| Line 318 nullfs_statfs(struct mount *mp, struct s | Line 310 nullfs_statfs(struct mount *mp, struct s |
| } | } |
| static int | static int |
| nullfs_sync(mp, waitfor, td) | nullfs_sync(struct mount *mp, int waitfor, struct thread *td) |
| struct mount *mp; | |
| int waitfor; | |
| struct thread *td; | |
| { | { |
| /* | /* |
| * XXX - Assumes no data cached at null layer. | * XXX - Assumes no data cached at null layer. |
| Line 330 nullfs_sync(mp, waitfor, td) | Line 319 nullfs_sync(mp, waitfor, td) |
| } | } |
| static int | static int |
| nullfs_vget(mp, ino, vpp) | nullfs_vget(struct mount *mp, ino_t ino, struct vnode **vpp) |
| struct mount *mp; | |
| ino_t ino; | |
| struct vnode **vpp; | |
| { | { |
| return VFS_VGET(MOUNTTONULLMOUNT(mp)->nullm_vfs, ino, vpp); | return VFS_VGET(MOUNTTONULLMOUNT(mp)->nullm_vfs, ino, vpp); |
| } | } |
| static int | static int |
| nullfs_fhtovp(mp, fidp, vpp) | nullfs_fhtovp(struct mount *mp, struct fid *fidp, struct vnode **vpp) |
| struct mount *mp; | |
| struct fid *fidp; | |
| struct vnode **vpp; | |
| { | { |
| return VFS_FHTOVP(MOUNTTONULLMOUNT(mp)->nullm_vfs, fidp, vpp); | return VFS_FHTOVP(MOUNTTONULLMOUNT(mp)->nullm_vfs, fidp, vpp); |
| } | } |
| static int | static int |
| nullfs_checkexp(mp, nam, extflagsp, credanonp) | nullfs_checkexp(struct mount *mp, struct sockaddr *nam, int *extflagsp, |
| struct mount *mp; | struct ucred **credanonp) |
| struct sockaddr *nam; | |
| int *extflagsp; | |
| struct ucred **credanonp; | |
| { | { |
| return VFS_CHECKEXP(MOUNTTONULLMOUNT(mp)->nullm_vfs, nam, | return VFS_CHECKEXP(MOUNTTONULLMOUNT(mp)->nullm_vfs, nam, |
| Line 362 nullfs_checkexp(mp, nam, extflagsp, cred | Line 342 nullfs_checkexp(mp, nam, extflagsp, cred |
| } | } |
| static int | static int |
| nullfs_vptofh(vp, fhp) | nullfs_vptofh(struct vnode *vp, struct fid *fhp) |
| struct vnode *vp; | |
| struct fid *fhp; | |
| { | { |
| return VFS_VPTOFH(NULLVPTOLOWERVP(vp), fhp); | return VFS_VPTOFH(NULLVPTOLOWERVP(vp), fhp); |
| } | } |
| static int | static int |
| nullfs_extattrctl(mp, cmd, attrname, arg, td) | nullfs_extattrctl(struct mount *mp, int cmd, const char *attrname, caddr_t arg, |
| struct mount *mp; | struct thread *td) |
| int cmd; | |
| const char *attrname; | |
| caddr_t arg; | |
| struct thread *td; | |
| { | { |
| return VFS_EXTATTRCTL(MOUNTTONULLMOUNT(mp)->nullm_vfs, cmd, attrname, | return VFS_EXTATTRCTL(MOUNTTONULLMOUNT(mp)->nullm_vfs, cmd, attrname, |
| arg, td); | arg, td); |