path: root/sys/gnu/fs/xfs/FreeBSD/xfs_mountops.c
diff options
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2007-02-15 22:08:35 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2007-02-15 22:08:35 +0000
commit10bcafe9abdb866e20e561bf567f15c0a06a0114 (patch)
treed0649ac0ff4a69d709b0c801322ed78174e44d1c /sys/gnu/fs/xfs/FreeBSD/xfs_mountops.c
parent233fcaed71e100aab87e94b9f579d3c23422d4db (diff)
Move vnode-to-file-handle translation from vfs_vptofh to vop_vptofh method.
This way we may support multiple structures in v_data vnode field within one file system without using black magic. Vnode-to-file-handle should be VOP in the first place, but was made VFS operation to keep interface as compatible as possible with SUN's VFS. BTW. Now Solaris also implements vnode-to-file-handle as VOP operation. VFS_VPTOFH() was left for API backward compatibility, but is marked for removal before 8.0-RELEASE. Approved by: mckusick Discussed with: many (on IRC) Tested with: ufs, msdosfs, cd9660, nullfs and zfs
Notes: svn path=/head/; revision=166774
Diffstat (limited to 'sys/gnu/fs/xfs/FreeBSD/xfs_mountops.c')
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/gnu/fs/xfs/FreeBSD/xfs_mountops.c b/sys/gnu/fs/xfs/FreeBSD/xfs_mountops.c
index da3650b3993b..683024a6461f 100644
--- a/sys/gnu/fs/xfs/FreeBSD/xfs_mountops.c
+++ b/sys/gnu/fs/xfs/FreeBSD/xfs_mountops.c
@@ -81,7 +81,6 @@ static vfs_statfs_t _xfs_statfs;
static vfs_sync_t _xfs_sync;
static vfs_vget_t _xfs_vget;
static vfs_fhtovp_t _xfs_fhtovp;
-static vfs_vptofh_t _xfs_vptofh;
static vfs_init_t _xfs_init;
static vfs_uninit_t _xfs_uninit;
static vfs_extattrctl_t _xfs_extattrctl;
@@ -383,15 +382,6 @@ _xfs_fhtovp(mp, fidp, vpp)
static int
-_xfs_vptofh(vp, fhp)
- struct vnode *vp;
- struct fid *fhp;
- printf("xfs_vptofh");
- return ENOSYS;
-static int
_xfs_extattrctl(struct mount *mp, int cm,
struct vnode *filename_v,
int attrnamespace, const char *attrname,
@@ -429,7 +419,6 @@ static struct vfsops xfs_fsops = {
.vfs_sync = _xfs_sync,
.vfs_vget = _xfs_vget,
.vfs_fhtovp = _xfs_fhtovp,
- .vfs_vptofh = _xfs_vptofh,
.vfs_init = _xfs_init,
.vfs_uninit = _xfs_uninit,
.vfs_extattrctl = _xfs_extattrctl,