msdosfs_vnops.c (76117) | msdosfs_vnops.c (76167) |
---|---|
1/* $FreeBSD: head/sys/fs/msdosfs/msdosfs_vnops.c 76117 2001-04-29 02:45:39Z grog $ */ | 1/* $FreeBSD: head/sys/fs/msdosfs/msdosfs_vnops.c 76167 2001-05-01 08:34:45Z phk $ */ |
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 * --- 86 unchanged lines hidden (view full) --- 96static int msdosfs_mkdir __P((struct vop_mkdir_args *)); 97static int msdosfs_rmdir __P((struct vop_rmdir_args *)); 98static int msdosfs_symlink __P((struct vop_symlink_args *)); 99static int msdosfs_readdir __P((struct vop_readdir_args *)); 100static int msdosfs_bmap __P((struct vop_bmap_args *)); 101static int msdosfs_strategy __P((struct vop_strategy_args *)); 102static int msdosfs_print __P((struct vop_print_args *)); 103static int msdosfs_pathconf __P((struct vop_pathconf_args *ap)); | 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 * --- 86 unchanged lines hidden (view full) --- 96static int msdosfs_mkdir __P((struct vop_mkdir_args *)); 97static int msdosfs_rmdir __P((struct vop_rmdir_args *)); 98static int msdosfs_symlink __P((struct vop_symlink_args *)); 99static int msdosfs_readdir __P((struct vop_readdir_args *)); 100static int msdosfs_bmap __P((struct vop_bmap_args *)); 101static int msdosfs_strategy __P((struct vop_strategy_args *)); 102static int msdosfs_print __P((struct vop_print_args *)); 103static int msdosfs_pathconf __P((struct vop_pathconf_args *ap)); |
104static int msdosfs_getpages __P((struct vop_getpages_args *)); 105static int msdosfs_putpages __P((struct vop_putpages_args *)); | |
106 107/* 108 * Some general notes: 109 * 110 * In the ufs filesystem the inodes, superblocks, and indirect blocks are 111 * read/written using the vnode for the filesystem. Blocks that represent 112 * the contents of a file are read/written using the vnode for the file 113 * (including directories when they are read/written as files). This --- 1748 unchanged lines hidden (view full) --- 1862 *ap->a_retval = 0; 1863 return (0); 1864 default: 1865 return (EINVAL); 1866 } 1867 /* NOTREACHED */ 1868} 1869 | 104 105/* 106 * Some general notes: 107 * 108 * In the ufs filesystem the inodes, superblocks, and indirect blocks are 109 * read/written using the vnode for the filesystem. Blocks that represent 110 * the contents of a file are read/written using the vnode for the file 111 * (including directories when they are read/written as files). This --- 1748 unchanged lines hidden (view full) --- 1860 *ap->a_retval = 0; 1861 return (0); 1862 default: 1863 return (EINVAL); 1864 } 1865 /* NOTREACHED */ 1866} 1867 |
1870/* 1871 * get page routine 1872 * 1873 * XXX By default, wimp out... note that a_offset is ignored (and always 1874 * XXX has been). 1875 */ 1876int 1877msdosfs_getpages(ap) 1878 struct vop_getpages_args *ap; 1879{ 1880 return vnode_pager_generic_getpages(ap->a_vp, ap->a_m, ap->a_count, 1881 ap->a_reqpage); 1882} | |
1883 | 1868 |
1884/* 1885 * put page routine 1886 * 1887 * XXX By default, wimp out... note that a_offset is ignored (and always 1888 * XXX has been). 1889 */ 1890int 1891msdosfs_putpages(ap) 1892 struct vop_putpages_args *ap; 1893{ 1894 return vnode_pager_generic_putpages(ap->a_vp, ap->a_m, ap->a_count, 1895 ap->a_sync, ap->a_rtvals); 1896} 1897 | |
1898/* Global vfs data structures for msdosfs */ 1899vop_t **msdosfs_vnodeop_p; 1900static struct vnodeopv_entry_desc msdosfs_vnodeop_entries[] = { 1901 { &vop_default_desc, (vop_t *) vop_defaultop }, 1902 { &vop_access_desc, (vop_t *) msdosfs_access }, 1903 { &vop_bmap_desc, (vop_t *) msdosfs_bmap }, 1904 { &vop_cachedlookup_desc, (vop_t *) msdosfs_lookup }, 1905 { &vop_close_desc, (vop_t *) msdosfs_close }, --- 15 unchanged lines hidden (view full) --- 1921 { &vop_remove_desc, (vop_t *) msdosfs_remove }, 1922 { &vop_rename_desc, (vop_t *) msdosfs_rename }, 1923 { &vop_rmdir_desc, (vop_t *) msdosfs_rmdir }, 1924 { &vop_setattr_desc, (vop_t *) msdosfs_setattr }, 1925 { &vop_strategy_desc, (vop_t *) msdosfs_strategy }, 1926 { &vop_symlink_desc, (vop_t *) msdosfs_symlink }, 1927 { &vop_unlock_desc, (vop_t *) vop_stdunlock }, 1928 { &vop_write_desc, (vop_t *) msdosfs_write }, | 1869/* Global vfs data structures for msdosfs */ 1870vop_t **msdosfs_vnodeop_p; 1871static struct vnodeopv_entry_desc msdosfs_vnodeop_entries[] = { 1872 { &vop_default_desc, (vop_t *) vop_defaultop }, 1873 { &vop_access_desc, (vop_t *) msdosfs_access }, 1874 { &vop_bmap_desc, (vop_t *) msdosfs_bmap }, 1875 { &vop_cachedlookup_desc, (vop_t *) msdosfs_lookup }, 1876 { &vop_close_desc, (vop_t *) msdosfs_close }, --- 15 unchanged lines hidden (view full) --- 1892 { &vop_remove_desc, (vop_t *) msdosfs_remove }, 1893 { &vop_rename_desc, (vop_t *) msdosfs_rename }, 1894 { &vop_rmdir_desc, (vop_t *) msdosfs_rmdir }, 1895 { &vop_setattr_desc, (vop_t *) msdosfs_setattr }, 1896 { &vop_strategy_desc, (vop_t *) msdosfs_strategy }, 1897 { &vop_symlink_desc, (vop_t *) msdosfs_symlink }, 1898 { &vop_unlock_desc, (vop_t *) vop_stdunlock }, 1899 { &vop_write_desc, (vop_t *) msdosfs_write }, |
1929 { &vop_getpages_desc, (vop_t *) msdosfs_getpages }, 1930 { &vop_putpages_desc, (vop_t *) msdosfs_putpages }, | |
1931 { NULL, NULL } 1932}; 1933static struct vnodeopv_desc msdosfs_vnodeop_opv_desc = 1934 { &msdosfs_vnodeop_p, msdosfs_vnodeop_entries }; 1935 1936VNODEOP_SET(msdosfs_vnodeop_opv_desc); | 1900 { NULL, NULL } 1901}; 1902static struct vnodeopv_desc msdosfs_vnodeop_opv_desc = 1903 { &msdosfs_vnodeop_p, msdosfs_vnodeop_entries }; 1904 1905VNODEOP_SET(msdosfs_vnodeop_opv_desc); |