Changeset 105679 in vbox
- Timestamp:
- Aug 14, 2024 8:31:27 PM (4 months ago)
- Location:
- trunk/src/VBox/Additions/solaris/SharedFolders
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c
r98103 r105679 124 124 * Module linkage information 125 125 */ 126 #if defined(VBOX_VFS_SOLARIS_10U6) 127 struct modlfs_s10 { 128 struct mod_ops *fs_modops; 129 char *fs_linkinfo; 130 struct vfsdef_v3 *fs_vfsdef; 131 }; 132 static struct modlfs_s10 modlfs = { 133 #else 126 134 static struct modlfs modlfs = { 135 #endif 127 136 &mod_fsops, 128 137 DEVICE_DESC " " VBOX_VERSION_STRING "r" VBOXSOLQUOTE(VBOX_SVN_REV), … … 206 215 sffs_init(int fstype, char *name) 207 216 { 208 #if defined(VBOX_VFS_SOLARIS_10U6)209 static const fs_operation_def_t sffs_vfsops_template[] = {210 VFSNAME_MOUNT, sffs_mount,211 VFSNAME_UNMOUNT, sffs_unmount,212 VFSNAME_ROOT, sffs_root,213 VFSNAME_STATVFS, sffs_statvfs,214 NULL, NULL215 };216 #else217 217 static const fs_operation_def_t sffs_vfsops_template[] = { 218 218 VFSNAME_MOUNT, { .vfs_mount = sffs_mount }, … … 222 222 NULL, NULL 223 223 }; 224 #endif225 224 int error; 226 225 -
trunk/src/VBox/Additions/solaris/SharedFolders/vboxfs_vnode.c
r98103 r105679 720 720 uio_t *uiop, 721 721 cred_t *cred, 722 int *eofp, 723 caller_context_t *ct, 724 int flag) 722 int *eofp 723 #if !defined(VBOX_VFS_SOLARIS_10U6) 724 , caller_context_t *ct, 725 int flag 726 #endif 727 ) 725 728 { 726 729 sfnode_t *dir = VN2SFN(vp); … … 756 759 757 760 if (dir->sf_dir_list == NULL) { 761 #if defined(VBOX_VFS_SOLARIS_10U6) 762 int flag = 0; 763 #endif 758 764 error = sfprov_readdir(dir->sf_sffs->sf_handle, dir->sf_path, 759 765 &dir->sf_dir_list, flag); … … 846 852 847 853 848 #if defined(VBOX_VFS_SOLARIS_10U6)849 854 /* 850 855 * HERE JOE.. this may need more logic, need to look at other file systems … … 855 860 int cmd, 856 861 ulong_t *valp, 857 cred_t *cr) 858 { 862 cred_t *cr 863 #if !defined(VBOX_VFS_SOLARIS_10U6) 864 , caller_context_t *ct 865 #endif 866 ) 867 { 868 #if !defined(VBOX_VFS_SOLARIS_10U6) 869 return (fs_pathconf(vp, cmd, valp, cr, ct)); 870 #else 859 871 return (fs_pathconf(vp, cmd, valp, cr)); 860 } 861 #else 862 /* 863 * HERE JOE.. this may need more logic, need to look at other file systems 864 */ 865 static int 866 sffs_pathconf( 867 vnode_t *vp, 868 int cmd, 869 ulong_t *valp, 870 cred_t *cr, 871 caller_context_t *ct) 872 { 873 return (fs_pathconf(vp, cmd, valp, cr, ct)); 874 } 875 #endif 872 #endif 873 } 876 874 877 875 static int … … 880 878 vattr_t *vap, 881 879 int flags, 882 cred_t *cred, 883 caller_context_t *ct) 880 cred_t *cred 881 #if !defined(VBOX_VFS_SOLARIS_10U6) 882 , caller_context_t *ct 883 #endif 884 ) 884 885 { 885 886 sfnode_t *node = VN2SFN(vp); … … 1153 1154 /*ARGSUSED*/ 1154 1155 static int 1155 sffs_access(vnode_t *vp, int mode, int flags, cred_t *cr, caller_context_t *ct) 1156 sffs_access( 1157 vnode_t *vp, 1158 int mode, 1159 int flags, 1160 cred_t *cr 1161 #if !defined(VBOX_VFS_SOLARIS_10U6) 1162 , caller_context_t *ct 1163 #endif 1164 ) 1156 1165 { 1157 1166 sfnode_t *node = VN2SFN(vp); … … 1176 1185 int flags, 1177 1186 vnode_t *rdir, 1178 cred_t *cred, 1179 caller_context_t *ct, 1187 cred_t *cred 1188 #if !defined(VBOX_VFS_SOLARIS_10U6) 1189 , caller_context_t *ct, 1180 1190 int *direntflags, 1181 struct pathname *realpnp) 1191 struct pathname *realpnp 1192 #endif 1193 ) 1182 1194 { 1183 1195 int error; … … 1232 1244 vnode_t **vpp, 1233 1245 cred_t *cr, 1234 int flag, 1235 caller_context_t *ct, 1236 vsecattr_t *vsecp) 1246 int flag 1247 #if !defined(VBOX_VFS_SOLARIS_10U6) 1248 , caller_context_t *ct, 1249 vsecattr_t *vsecp 1250 #endif 1251 ) 1237 1252 { 1238 1253 vnode_t *vp; … … 1253 1268 * is this a pre-existing file? 1254 1269 */ 1270 #if defined(VBOX_VFS_SOLARIS_10U6) 1271 error = sffs_lookup(dvp, name, &vp, 1272 NULL, 0, NULL, cr); 1273 #else 1255 1274 error = sffs_lookup(dvp, name, &vp, 1256 1275 NULL, 0, NULL, cr, ct, NULL, NULL); 1276 #endif 1257 1277 if (error == ENOENT) 1258 1278 vp = NULL; … … 1336 1356 vattr_t *va, 1337 1357 vnode_t **vpp, 1338 cred_t *cred, 1339 caller_context_t *ct, 1358 cred_t *cred 1359 #if !defined(VBOX_VFS_SOLARIS_10U6) 1360 , caller_context_t *ct, 1340 1361 int flags, 1341 vsecattr_t *vsecp) 1362 vsecattr_t *vsecp 1363 #endif 1364 ) 1342 1365 { 1343 1366 sfnode_t *node; … … 1356 1379 * Do an unlocked look up first 1357 1380 */ 1381 #if defined(VBOX_VFS_SOLARIS_10U6) 1382 error = sffs_lookup(dvp, nm, &vp, NULL, 0, NULL, cred); 1383 #else 1358 1384 error = sffs_lookup(dvp, nm, &vp, NULL, 0, NULL, cred, ct, NULL, NULL); 1385 #endif 1359 1386 if (error == 0) { 1360 1387 VN_RELE(vp); … … 1395 1422 char *nm, 1396 1423 vnode_t *cdir, 1397 cred_t *cred, 1398 caller_context_t *ct, 1399 int flags) 1424 cred_t *cred 1425 #if !defined(VBOX_VFS_SOLARIS_10U6) 1426 , caller_context_t *ct, 1427 int flags 1428 #endif 1429 ) 1400 1430 { 1401 1431 sfnode_t *node; … … 1411 1441 return (EEXIST); 1412 1442 1443 #if defined(VBOX_VFS_SOLARIS_10U6) 1444 error = sffs_lookup(dvp, nm, &vp, NULL, 0, NULL, cred); 1445 #else 1413 1446 error = sffs_lookup(dvp, nm, &vp, NULL, 0, NULL, cred, ct, NULL, NULL); 1447 #endif 1414 1448 if (error) 1415 1449 return (error); … … 1876 1910 cred_t *cred 1877 1911 #if !defined(VBOX_VFS_SOLARIS_10U6) 1878 , 1879 caller_context_t *ct 1912 , caller_context_t *ct 1880 1913 #endif 1881 1914 ) … … 1920 1953 cred_t *cred 1921 1954 #if !defined(VBOX_VFS_SOLARIS_10U6) 1922 , 1923 caller_context_t *ct, 1955 , caller_context_t *ct, 1924 1956 int flags 1925 1957 #endif … … 1987 2019 vnode_t *dvp, 1988 2020 char *name, 1989 cred_t *cred, 1990 caller_context_t *ct, 1991 int flags) 2021 cred_t *cred 2022 #if !defined(VBOX_VFS_SOLARIS_10U6) 2023 , caller_context_t *ct, 2024 int flags 2025 #endif 2026 ) 1992 2027 { 1993 2028 vnode_t *vp; … … 2001 2036 ASSERT(strcmp(name, "..") != 0); 2002 2037 2038 #if defined(VBOX_VFS_SOLARIS_10U6) 2039 error = sffs_lookup(dvp, name, &vp, 2040 NULL, 0, NULL, cred); 2041 #else 2003 2042 error = sffs_lookup(dvp, name, &vp, 2004 2043 NULL, 0, NULL, cred, ct, NULL, NULL); 2044 #endif 2005 2045 if (error) 2006 2046 return (error); … … 2053 2093 vnode_t *new_dir, 2054 2094 char *new_nm, 2055 cred_t *cred, 2056 caller_context_t *ct, 2057 int flags) 2095 cred_t *cred 2096 #if !defined(VBOX_VFS_SOLARIS_10U6) 2097 , caller_context_t *ct, 2098 int flags 2099 #endif 2100 ) 2058 2101 { 2059 2102 char *newpath; … … 2110 2153 /*ARGSUSED*/ 2111 2154 static int 2112 sffs_fsync(vnode_t *vp, int flag, cred_t *cr, caller_context_t *ct) 2155 sffs_fsync( 2156 vnode_t *vp, 2157 int flag, 2158 cred_t *cr 2159 #if !defined(VBOX_VFS_SOLARIS_10U6) 2160 , caller_context_t *ct 2161 #endif 2162 ) 2113 2163 { 2114 2164 sfnode_t *node; … … 2136 2186 /*ARGSUSED*/ 2137 2187 static void 2138 #if defined(VBOX_VFS_SOLARIS_10U6) 2139 sffs_inactive(vnode_t *vp, cred_t *cr) 2140 #else 2141 sffs_inactive(vnode_t *vp, cred_t *cr, caller_context_t *ct) 2142 #endif 2188 sffs_inactive( 2189 vnode_t *vp, 2190 cred_t *cr 2191 #if !defined(VBOX_VFS_SOLARIS_10U6) 2192 , caller_context_t *ct 2193 #endif 2194 ) 2143 2195 { 2144 2196 sfnode_t *node; … … 2208 2260 /*ARGSUSED*/ 2209 2261 static int 2210 sffs_open(vnode_t **vpp, int flag, cred_t *cr, caller_context_t *ct) 2262 sffs_open( 2263 vnode_t **vpp, 2264 int flag, 2265 cred_t *cr 2266 #if !defined(VBOX_VFS_SOLARIS_10U6) 2267 , caller_context_t *ct 2268 #endif 2269 ) 2211 2270 { 2212 2271 sfnode_t *node; … … 2234 2293 int count, 2235 2294 offset_t offset, 2236 cred_t *cr, 2237 caller_context_t *ct) 2295 cred_t *cr 2296 #if !defined(VBOX_VFS_SOLARIS_10U6) 2297 , caller_context_t *ct 2298 #endif 2299 ) 2238 2300 { 2239 2301 sfnode_t *node; … … 2267 2329 /* ARGSUSED */ 2268 2330 static int 2269 sffs_seek(vnode_t *v, offset_t o, offset_t *no, caller_context_t *ct) 2331 sffs_seek( 2332 vnode_t *v, 2333 offset_t o, 2334 offset_t *no 2335 #if !defined(VBOX_VFS_SOLARIS_10U6) 2336 , caller_context_t *ct 2337 #endif 2338 ) 2270 2339 { 2271 2340 if (*no < 0 || *no > MAXOFFSET_T) … … 2299 2368 /* ARGSUSED */ 2300 2369 static int 2301 sffs_fid(vnode_t *vp, fid_t *fidp, caller_context_t *ct) 2370 sffs_fid( 2371 vnode_t *vp, 2372 fid_t *fidp 2373 #if !defined(VBOX_VFS_SOLARIS_10U6) 2374 , caller_context_t *ct 2375 #endif 2376 ) 2302 2377 { 2303 2378 return (ENOTSUP); … … 2308 2383 */ 2309 2384 const fs_operation_def_t sffs_ops_template[] = { 2310 #if defined(VBOX_VFS_SOLARIS_10U6)2311 VOPNAME_ACCESS, sffs_access,2312 VOPNAME_CLOSE, sffs_close,2313 VOPNAME_CREATE, sffs_create,2314 VOPNAME_FID, sffs_fid,2315 VOPNAME_FSYNC, sffs_fsync,2316 VOPNAME_GETATTR, sffs_getattr,2317 VOPNAME_INACTIVE, sffs_inactive,2318 VOPNAME_LOOKUP, sffs_lookup,2319 VOPNAME_MKDIR, sffs_mkdir,2320 VOPNAME_OPEN, sffs_open,2321 VOPNAME_PATHCONF, sffs_pathconf,2322 VOPNAME_READ, sffs_read,2323 VOPNAME_READDIR, sffs_readdir,2324 VOPNAME_READLINK, sffs_readlink,2325 VOPNAME_REMOVE, sffs_remove,2326 VOPNAME_RENAME, sffs_rename,2327 VOPNAME_RMDIR, sffs_rmdir,2328 VOPNAME_SEEK, sffs_seek,2329 VOPNAME_SETATTR, sffs_setattr,2330 VOPNAME_SPACE, sffs_space,2331 VOPNAME_SYMLINK, sffs_symlink,2332 VOPNAME_WRITE, sffs_write,2333 2334 # ifdef VBOXVFS_WITH_MMAP2335 VOPNAME_MAP, sffs_map,2336 VOPNAME_ADDMAP, sffs_addmap,2337 VOPNAME_DELMAP, sffs_delmap,2338 VOPNAME_GETPAGE, sffs_getpage,2339 VOPNAME_PUTPAGE, sffs_putpage,2340 # endif2341 2342 NULL, NULL2343 #else2344 2385 VOPNAME_ACCESS, { .vop_access = sffs_access }, 2345 2386 VOPNAME_CLOSE, { .vop_close = sffs_close }, … … 2374 2415 2375 2416 NULL, NULL 2376 #endif2377 2417 }; 2378 2418
Note:
See TracChangeset
for help on using the changeset viewer.