aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/msdosfs/msdosfs_vnops.c
diff options
context:
space:
mode:
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/fs/msdosfs/msdosfs_vnops.c
parent233fcaed71e100aab87e94b9f579d3c23422d4db (diff)
downloadsrc-10bcafe9abdb866e20e561bf567f15c0a06a0114.tar.gz
src-10bcafe9abdb866e20e561bf567f15c0a06a0114.zip
Notes
Diffstat (limited to 'sys/fs/msdosfs/msdosfs_vnops.c')
-rw-r--r--sys/fs/msdosfs/msdosfs_vnops.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/sys/fs/msdosfs/msdosfs_vnops.c b/sys/fs/msdosfs/msdosfs_vnops.c
index 589f13ade64a..33e52923a994 100644
--- a/sys/fs/msdosfs/msdosfs_vnops.c
+++ b/sys/fs/msdosfs/msdosfs_vnops.c
@@ -107,6 +107,7 @@ static vop_bmap_t msdosfs_bmap;
static vop_strategy_t msdosfs_strategy;
static vop_print_t msdosfs_print;
static vop_pathconf_t msdosfs_pathconf;
+static vop_vptofh_t msdosfs_vptofh;
/*
* Some general notes:
@@ -1904,6 +1905,25 @@ msdosfs_advlock(ap)
return (lf_advlock(ap, &dep->de_lockf, dep->de_FileSize));
}
+static int
+msdosfs_vptofh(ap)
+ struct vop_vptofh_args /* {
+ struct vnode *a_vp;
+ struct fid *a_fhp;
+ } */ *ap;
+{
+ struct denode *dep;
+ struct defid *defhp;
+
+ dep = VTODE(ap->a_vp);
+ defhp = (struct defid *)ap->a_fhp;
+ defhp->defid_len = sizeof(struct defid);
+ defhp->defid_dirclust = dep->de_dirclust;
+ defhp->defid_dirofs = dep->de_diroffset;
+ /* defhp->defid_gen = dep->de_gen; */
+ return (0);
+}
+
/* Global vfs data structures for msdosfs */
struct vop_vector msdosfs_vnodeops = {
.vop_default = &default_vnodeops,
@@ -1934,4 +1954,5 @@ struct vop_vector msdosfs_vnodeops = {
.vop_strategy = msdosfs_strategy,
.vop_symlink = msdosfs_symlink,
.vop_write = msdosfs_write,
+ .vop_vptofh = msdosfs_vptofh,
};