msdosfs_vnops.c (166343) | msdosfs_vnops.c (166774) |
---|---|
1/* $FreeBSD: head/sys/fs/msdosfs/msdosfs_vnops.c 166343 2007-01-30 08:05:04Z avatar $ */ | 1/* $FreeBSD: head/sys/fs/msdosfs/msdosfs_vnops.c 166774 2007-02-15 22:08:35Z pjd $ */ |
2/* $NetBSD: msdosfs_vnops.c,v 1.68 1998/02/10 14:10:04 mrg 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 * --- 92 unchanged lines hidden (view full) --- 102static vop_mkdir_t msdosfs_mkdir; 103static vop_rmdir_t msdosfs_rmdir; 104static vop_symlink_t msdosfs_symlink; 105static vop_readdir_t msdosfs_readdir; 106static vop_bmap_t msdosfs_bmap; 107static vop_strategy_t msdosfs_strategy; 108static vop_print_t msdosfs_print; 109static vop_pathconf_t msdosfs_pathconf; | 2/* $NetBSD: msdosfs_vnops.c,v 1.68 1998/02/10 14:10:04 mrg 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 * --- 92 unchanged lines hidden (view full) --- 102static vop_mkdir_t msdosfs_mkdir; 103static vop_rmdir_t msdosfs_rmdir; 104static vop_symlink_t msdosfs_symlink; 105static vop_readdir_t msdosfs_readdir; 106static vop_bmap_t msdosfs_bmap; 107static vop_strategy_t msdosfs_strategy; 108static vop_print_t msdosfs_print; 109static vop_pathconf_t msdosfs_pathconf; |
110static vop_vptofh_t msdosfs_vptofh; |
|
110 111/* 112 * Some general notes: 113 * 114 * In the ufs filesystem the inodes, superblocks, and indirect blocks are 115 * read/written using the vnode for the filesystem. Blocks that represent 116 * the contents of a file are read/written using the vnode for the file 117 * (including directories when they are read/written as files). This --- 1781 unchanged lines hidden (view full) --- 1899 int a_flags; 1900 } */ *ap; 1901{ 1902 struct denode *dep = VTODE(ap->a_vp); 1903 1904 return (lf_advlock(ap, &dep->de_lockf, dep->de_FileSize)); 1905} 1906 | 111 112/* 113 * Some general notes: 114 * 115 * In the ufs filesystem the inodes, superblocks, and indirect blocks are 116 * read/written using the vnode for the filesystem. Blocks that represent 117 * the contents of a file are read/written using the vnode for the file 118 * (including directories when they are read/written as files). This --- 1781 unchanged lines hidden (view full) --- 1900 int a_flags; 1901 } */ *ap; 1902{ 1903 struct denode *dep = VTODE(ap->a_vp); 1904 1905 return (lf_advlock(ap, &dep->de_lockf, dep->de_FileSize)); 1906} 1907 |
1908static int 1909msdosfs_vptofh(ap) 1910 struct vop_vptofh_args /* { 1911 struct vnode *a_vp; 1912 struct fid *a_fhp; 1913 } */ *ap; 1914{ 1915 struct denode *dep; 1916 struct defid *defhp; 1917 1918 dep = VTODE(ap->a_vp); 1919 defhp = (struct defid *)ap->a_fhp; 1920 defhp->defid_len = sizeof(struct defid); 1921 defhp->defid_dirclust = dep->de_dirclust; 1922 defhp->defid_dirofs = dep->de_diroffset; 1923 /* defhp->defid_gen = dep->de_gen; */ 1924 return (0); 1925} 1926 |
|
1907/* Global vfs data structures for msdosfs */ 1908struct vop_vector msdosfs_vnodeops = { 1909 .vop_default = &default_vnodeops, 1910 1911 .vop_access = msdosfs_access, 1912 .vop_advlock = msdosfs_advlock, 1913 .vop_bmap = msdosfs_bmap, 1914 .vop_cachedlookup = msdosfs_lookup, --- 14 unchanged lines hidden (view full) --- 1929 .vop_reclaim = msdosfs_reclaim, 1930 .vop_remove = msdosfs_remove, 1931 .vop_rename = msdosfs_rename, 1932 .vop_rmdir = msdosfs_rmdir, 1933 .vop_setattr = msdosfs_setattr, 1934 .vop_strategy = msdosfs_strategy, 1935 .vop_symlink = msdosfs_symlink, 1936 .vop_write = msdosfs_write, | 1927/* Global vfs data structures for msdosfs */ 1928struct vop_vector msdosfs_vnodeops = { 1929 .vop_default = &default_vnodeops, 1930 1931 .vop_access = msdosfs_access, 1932 .vop_advlock = msdosfs_advlock, 1933 .vop_bmap = msdosfs_bmap, 1934 .vop_cachedlookup = msdosfs_lookup, --- 14 unchanged lines hidden (view full) --- 1949 .vop_reclaim = msdosfs_reclaim, 1950 .vop_remove = msdosfs_remove, 1951 .vop_rename = msdosfs_rename, 1952 .vop_rmdir = msdosfs_rmdir, 1953 .vop_setattr = msdosfs_setattr, 1954 .vop_strategy = msdosfs_strategy, 1955 .vop_symlink = msdosfs_symlink, 1956 .vop_write = msdosfs_write, |
1957 .vop_vptofh = msdosfs_vptofh, |
|
1937}; | 1958}; |