Deleted Added
full compact
msdosfs_vfsops.c (166559) msdosfs_vfsops.c (166774)
1/* $FreeBSD: head/sys/fs/msdosfs/msdosfs_vfsops.c 166559 2007-02-08 02:30:55Z rodrigc $ */
1/* $FreeBSD: head/sys/fs/msdosfs/msdosfs_vfsops.c 166774 2007-02-15 22:08:35Z pjd $ */
2/* $NetBSD: msdosfs_vfsops.c,v 1.51 1997/11/17 15:36:58 ws Exp $ */
3
4/*-
5 * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
6 * Copyright (C) 1994, 1995, 1997 TooLs GmbH.
7 * All rights reserved.
8 * Original code by Paul Popelka (paulp@uts.amdahl.com) (see below).
9 *

--- 97 unchanged lines hidden (view full) ---

107static int mountmsdosfs(struct vnode *devvp, struct mount *mp,
108 struct thread *td);
109static vfs_fhtovp_t msdosfs_fhtovp;
110static vfs_mount_t msdosfs_mount;
111static vfs_root_t msdosfs_root;
112static vfs_statfs_t msdosfs_statfs;
113static vfs_sync_t msdosfs_sync;
114static vfs_unmount_t msdosfs_unmount;
2/* $NetBSD: msdosfs_vfsops.c,v 1.51 1997/11/17 15:36:58 ws Exp $ */
3
4/*-
5 * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
6 * Copyright (C) 1994, 1995, 1997 TooLs GmbH.
7 * All rights reserved.
8 * Original code by Paul Popelka (paulp@uts.amdahl.com) (see below).
9 *

--- 97 unchanged lines hidden (view full) ---

107static int mountmsdosfs(struct vnode *devvp, struct mount *mp,
108 struct thread *td);
109static vfs_fhtovp_t msdosfs_fhtovp;
110static vfs_mount_t msdosfs_mount;
111static vfs_root_t msdosfs_root;
112static vfs_statfs_t msdosfs_statfs;
113static vfs_sync_t msdosfs_sync;
114static vfs_unmount_t msdosfs_unmount;
115static vfs_vptofh_t msdosfs_vptofh;
116
117/* Maximum length of a character set name (arbitrary). */
118#define MAXCSLEN 64
119
120static int
121update_mp(struct mount *mp, struct thread *td)
122{
123 struct msdosfsmount *pmp = VFSTOMSDOSFS(mp);

--- 802 unchanged lines hidden (view full) ---

926 *vpp = NULLVP;
927 return (error);
928 }
929 *vpp = DETOV(dep);
930 vnode_create_vobject(*vpp, dep->de_FileSize, curthread);
931 return (0);
932}
933
115
116/* Maximum length of a character set name (arbitrary). */
117#define MAXCSLEN 64
118
119static int
120update_mp(struct mount *mp, struct thread *td)
121{
122 struct msdosfsmount *pmp = VFSTOMSDOSFS(mp);

--- 802 unchanged lines hidden (view full) ---

925 *vpp = NULLVP;
926 return (error);
927 }
928 *vpp = DETOV(dep);
929 vnode_create_vobject(*vpp, dep->de_FileSize, curthread);
930 return (0);
931}
932
934static int
935msdosfs_vptofh(struct vnode *vp, struct fid *fhp)
936{
937 struct denode *dep;
938 struct defid *defhp;
939
940 dep = VTODE(vp);
941 defhp = (struct defid *)fhp;
942 defhp->defid_len = sizeof(struct defid);
943 defhp->defid_dirclust = dep->de_dirclust;
944 defhp->defid_dirofs = dep->de_diroffset;
945 /* defhp->defid_gen = dep->de_gen; */
946 return (0);
947}
948
949static struct vfsops msdosfs_vfsops = {
950 .vfs_fhtovp = msdosfs_fhtovp,
951 .vfs_mount = msdosfs_mount,
952 .vfs_cmount = msdosfs_cmount,
953 .vfs_root = msdosfs_root,
954 .vfs_statfs = msdosfs_statfs,
955 .vfs_sync = msdosfs_sync,
956 .vfs_unmount = msdosfs_unmount,
933static struct vfsops msdosfs_vfsops = {
934 .vfs_fhtovp = msdosfs_fhtovp,
935 .vfs_mount = msdosfs_mount,
936 .vfs_cmount = msdosfs_cmount,
937 .vfs_root = msdosfs_root,
938 .vfs_statfs = msdosfs_statfs,
939 .vfs_sync = msdosfs_sync,
940 .vfs_unmount = msdosfs_unmount,
957 .vfs_vptofh = msdosfs_vptofh,
958};
959
960VFS_SET(msdosfs_vfsops, msdosfs, 0);
961MODULE_VERSION(msdosfs, 1);
941};
942
943VFS_SET(msdosfs_vfsops, msdosfs, 0);
944MODULE_VERSION(msdosfs, 1);