Changeset 26176 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Feb 2, 2010 10:20:13 PM (15 years ago)
- Location:
- trunk/src/VBox/Additions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/utils.c
r26174 r26176 292 292 293 293 rc = vboxCallCreate (&client_handle, &sf_g->map, sf_i->path, ¶ms); 294 if ( VBOX_FAILURE (rc)) {294 if (RT_FAILURE (rc)) { 295 295 LogFunc(("vboxCallCreate(%s) failed rc=%Rrc\n", 296 296 sf_i->path->String.utf8, rc)); … … 342 342 SHFL_INFO_SET | SHFL_INFO_FILE, &cbBuffer, 343 343 (PSHFLDIRINFO)&info); 344 if ( VBOX_FAILURE (rc)) {344 if (RT_FAILURE (rc)) { 345 345 LogFunc(("vboxCallFSInfo(%s, FILE) failed rc=%Rrc\n", 346 346 sf_i->path->String.utf8, rc)); … … 358 358 SHFL_INFO_SET | SHFL_INFO_SIZE, &cbBuffer, 359 359 (PSHFLDIRINFO)&info); 360 if ( VBOX_FAILURE (rc)) {360 if (RT_FAILURE (rc)) { 361 361 LogFunc(("vboxCallFSInfo(%s, SIZE) failed rc=%Rrc\n", 362 362 sf_i->path->String.utf8, rc)); … … 367 367 368 368 rc = vboxCallClose (&client_handle, &sf_g->map, params.Handle); 369 if ( VBOX_FAILURE (rc))369 if (RT_FAILURE (rc)) 370 370 { 371 371 LogFunc(("vboxCallClose(%s) failed rc=%Rrc\n", … … 377 377 fail1: 378 378 rc = vboxCallClose (&client_handle, &sf_g->map, params.Handle); 379 if ( VBOX_FAILURE (rc))379 if (RT_FAILURE (rc)) 380 380 { 381 381 LogFunc(("vboxCallClose(%s) failed rc=%Rrc\n", -
trunk/src/VBox/Additions/solaris/SharedFolders/vboxfs_prov.c
r25883 r26176 124 124 str = sfprov_string(path, &size); 125 125 rc = vboxCallMapFolder(&vbox_client, str, &m->map); 126 if (! VBOX_SUCCESS(rc)) {126 if (!RT_SUCCESS(rc)) { 127 127 cmn_err(CE_WARN, "sfprov_mount: vboxCallMapFolder() failed"); 128 128 kmem_free(m, sizeof (*m)); … … 143 143 144 144 rc = vboxCallUnmapFolder(&vbox_client, &mnt->map); 145 if (! VBOX_SUCCESS(rc)) {145 if (!RT_SUCCESS(rc)) { 146 146 cmn_err(CE_WARN, "sfprov_mount: vboxCallUnmapFolder() failed"); 147 147 rc = EINVAL; … … 165 165 rc = vboxCallFSInfo(&vbox_client, &mnt->map, 0, 166 166 (SHFL_INFO_GET | SHFL_INFO_VOLUME), &bytes, (SHFLDIRINFO *)&info); 167 if ( VBOX_FAILURE(rc))167 if (RT_FAILURE(rc)) 168 168 return (EINVAL); 169 169 *blksize = info.ulBytesPerAllocationUnit; … … 180 180 rc = vboxCallFSInfo(&vbox_client, &mnt->map, 0, 181 181 (SHFL_INFO_GET | SHFL_INFO_VOLUME), &bytes, (SHFLDIRINFO *)&info); 182 if ( VBOX_FAILURE(rc))182 if (RT_FAILURE(rc)) 183 183 return (EINVAL); 184 184 *blksused = (info.ullTotalAllocationBytes - … … 196 196 rc = vboxCallFSInfo(&vbox_client, &mnt->map, 0, 197 197 (SHFL_INFO_GET | SHFL_INFO_VOLUME), &bytes, (SHFLDIRINFO *)&info); 198 if ( VBOX_FAILURE(rc))198 if (RT_FAILURE(rc)) 199 199 return (EINVAL); 200 200 *blksavail = … … 212 212 rc = vboxCallFSInfo(&vbox_client, &mnt->map, 0, 213 213 (SHFL_INFO_GET | SHFL_INFO_VOLUME), &bytes, (SHFLDIRINFO *)&info); 214 if ( VBOX_FAILURE(rc))214 if (RT_FAILURE(rc)) 215 215 return (EINVAL); 216 216 *maxnamesize = info.fsProperties.cbMaxComponent; … … 227 227 rc = vboxCallFSInfo(&vbox_client, &mnt->map, 0, 228 228 (SHFL_INFO_GET | SHFL_INFO_VOLUME), &bytes, (SHFLDIRINFO *)&info); 229 if ( VBOX_FAILURE(rc))229 if (RT_FAILURE(rc)) 230 230 return (EINVAL); 231 231 *readonly = info.fsProperties.fReadOnly;
Note:
See TracChangeset
for help on using the changeset viewer.