Changeset 30150 in vbox for trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.h
- Timestamp:
- Jun 10, 2010 4:05:56 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.h
r28998 r30150 23 23 #include "product-generated.h" 24 24 25 #if LINUX_VERSION_CODE >= KERNEL_VERSION 25 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) 26 26 # include <linux/backing-dev.h> 27 27 #endif … … 41 41 int dmask; 42 42 int fmask; 43 #if LINUX_VERSION_CODE >= KERNEL_VERSION 43 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) 44 44 struct backing_dev_info bdi; 45 45 #endif … … 52 52 /* some information was changed, update data on next revalidate */ 53 53 int force_restat; 54 /* directory content changed, update the whole directory on next sf_getdent */ 55 int force_reread; 54 56 /* file structure, only valid between open() and release() */ 55 57 struct file *file; … … 87 89 88 90 extern void 89 sf_init_inode (struct sf_glob_info *sf_g, struct inode *inode, 90 RTFSOBJINFO *info); 91 extern int 92 sf_stat (const char *caller, struct sf_glob_info *sf_g, 93 SHFLSTRING *path, RTFSOBJINFO *result, int ok_to_fail); 94 extern int 95 sf_inode_revalidate (struct dentry *dentry); 96 #if LINUX_VERSION_CODE >= KERNEL_VERSION (2, 6, 0) 97 extern int 98 sf_getattr (struct vfsmount *mnt, struct dentry *dentry, struct kstat *kstat); 99 extern int 100 sf_setattr (struct dentry *dentry, struct iattr *iattr); 91 sf_init_inode(struct sf_glob_info *sf_g, struct inode *inode, 92 RTFSOBJINFO *info); 93 extern int sf_stat(const char *caller, struct sf_glob_info *sf_g, 94 SHFLSTRING *path, RTFSOBJINFO *result, int ok_to_fail); 95 extern int sf_inode_revalidate(struct dentry *dentry); 96 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) 97 extern int sf_getattr(struct vfsmount *mnt, struct dentry *dentry, 98 struct kstat *kstat); 99 extern int sf_setattr(struct dentry *dentry, struct iattr *iattr); 101 100 #endif 102 extern int 103 sf_path_from_dentry (const char *caller, struct sf_glob_info *sf_g, 104 struct sf_inode_info *sf_i, struct dentry *dentry, 105 SHFLSTRING **result); 106 extern int 107 sf_nlscpy (struct sf_glob_info *sf_g, 108 char *name, size_t name_bound_len, 109 const unsigned char *utf8_name, size_t utf8_len); 110 extern void 111 sf_dir_info_free (struct sf_dir_info *p); 112 extern struct sf_dir_info * 113 sf_dir_info_alloc (void); 114 extern int 115 sf_dir_read_all (struct sf_glob_info *sf_g, struct sf_inode_info *sf_i, 116 struct sf_dir_info *sf_d, SHFLHANDLE handle); 117 extern int 118 sf_init_backing_dev (struct sf_glob_info *sf_g, const char *name); 119 extern void 120 sf_done_backing_dev (struct sf_glob_info *sf_g); 101 extern int sf_path_from_dentry(const char *caller, struct sf_glob_info *sf_g, 102 struct sf_inode_info *sf_i, struct dentry *dentry, 103 SHFLSTRING **result); 104 extern int sf_nlscpy(struct sf_glob_info *sf_g, 105 char *name, size_t name_bound_len, 106 const unsigned char *utf8_name, size_t utf8_len); 107 extern void sf_dir_info_free(struct sf_dir_info *p); 108 extern void sf_dir_info_empty(struct sf_dir_info *p); 109 extern struct sf_dir_info *sf_dir_info_alloc(void); 110 extern int sf_dir_read_all(struct sf_glob_info *sf_g, struct sf_inode_info *sf_i, 111 struct sf_dir_info *sf_d, SHFLHANDLE handle); 112 extern int sf_init_backing_dev(struct sf_glob_info *sf_g, const char *name); 113 extern void sf_done_backing_dev(struct sf_glob_info *sf_g); 121 114 122 #if LINUX_VERSION_CODE < KERNEL_VERSION 115 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0) 123 116 #define STRUCT_STATFS struct statfs 124 117 #else … … 137 130 /* Following casts are here to prevent assignment of void * to 138 131 pointers of arbitrary type */ 139 #if LINUX_VERSION_CODE < KERNEL_VERSION 132 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0) 140 133 #define GET_GLOB_INFO(sb) ((struct sf_glob_info *) (sb)->u.generic_sbp) 141 134 #define SET_GLOB_INFO(sb, sf_g) (sb)->u.generic_sbp = sf_g
Note:
See TracChangeset
for help on using the changeset viewer.