Changeset 94291 in vbox for trunk/src/VBox/Runtime/common/vfs
- Timestamp:
- Mar 17, 2022 1:29:52 PM (3 years ago)
- Location:
- trunk/src/VBox/Runtime/common/vfs
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/vfs/vfsbase.cpp
r93115 r94291 72 72 AssertPtr((a_pObjOps)->pfnClose); \ 73 73 AssertPtr((a_pObjOps)->pfnQueryInfo); \ 74 AssertPtrNull((a_pObjOps)->pfnQueryInfoEx); \ 74 75 Assert((a_pObjOps)->uEndMarker == RTVFSOBJOPS_VERSION); \ 75 76 } while (0) … … 2308 2309 2309 2310 2311 RTDECL(int) RTVfsQueryLabel(RTVFS hVfs, char *pszLabel, size_t cbLabel, size_t *pcbActual) 2312 { 2313 RTVFSINTERNAL *pThis = hVfs; 2314 AssertPtrReturn(pThis, VERR_INVALID_HANDLE); 2315 AssertReturn(pThis->uMagic == RTVFS_MAGIC, VERR_INVALID_HANDLE); 2316 2317 if (cbLabel > 0) 2318 AssertPtrReturn(pszLabel, VERR_INVALID_POINTER); 2319 2320 int rc; 2321 if (pThis->pOps->Obj.pfnQueryInfoEx) 2322 { 2323 size_t cbActualIgn; 2324 if (!pcbActual) 2325 pcbActual = &cbActualIgn; 2326 2327 RTVfsLockAcquireRead(pThis->Base.hLock); 2328 rc = pThis->pOps->Obj.pfnQueryInfoEx(pThis->Base.pvThis, RTVFSQIEX_VOL_LABEL, pszLabel, cbLabel, pcbActual); 2329 RTVfsLockReleaseRead(pThis->Base.hLock); 2330 } 2331 else 2332 rc = VERR_NOT_SUPPORTED; 2333 return rc; 2334 } 2335 2310 2336 2311 2337 -
trunk/src/VBox/Runtime/common/vfs/vfsfss2dir.cpp
r93115 r94291 284 284 rtVfsFssToDir_Close, 285 285 rtVfsFssToDir_QueryInfo, 286 NULL, 286 287 RTVFSOBJOPS_VERSION 287 288 }, -
trunk/src/VBox/Runtime/common/vfs/vfsmemory.cpp
r93115 r94291 731 731 rtVfsMemFile_Close, 732 732 rtVfsMemFile_QueryInfo, 733 NULL, 733 734 RTVFSOBJOPS_VERSION 734 735 }, -
trunk/src/VBox/Runtime/common/vfs/vfsprogress.cpp
r93115 r94291 308 308 rtVfsProgressFile_Close, 309 309 rtVfsProgressFile_QueryInfo, 310 NULL, 310 311 RTVFSOBJOPS_VERSION 311 312 }, … … 439 440 rtVfsProgressFile_Close, 440 441 rtVfsProgressFile_QueryInfo, 442 NULL, 441 443 RTVFSOBJOPS_VERSION 442 444 }, -
trunk/src/VBox/Runtime/common/vfs/vfsreadahead.cpp
r93115 r94291 535 535 rtVfsReadAhead_Close, 536 536 rtVfsReadAhead_QueryInfo, 537 NULL, 537 538 RTVFSOBJOPS_VERSION 538 539 }, … … 562 563 rtVfsReadAhead_Close, 563 564 rtVfsReadAhead_QueryInfo, 565 NULL, 564 566 RTVFSOBJOPS_VERSION 565 567 }, -
trunk/src/VBox/Runtime/common/vfs/vfsstddir.cpp
r93115 r94291 166 166 rtVfsStdSym_Close, 167 167 rtVfsStdSym_QueryInfo, 168 NULL, 168 169 RTVFSOBJOPS_VERSION 169 170 }, … … 668 669 rtVfsStdDir_Close, 669 670 rtVfsStdDir_QueryInfo, 671 NULL, 670 672 RTVFSOBJOPS_VERSION 671 673 }, -
trunk/src/VBox/Runtime/common/vfs/vfsstdfile.cpp
r93115 r94291 451 451 rtVfsStdFile_Close, 452 452 rtVfsStdFile_QueryInfo, 453 NULL, 453 454 RTVFSOBJOPS_VERSION 454 455 }, -
trunk/src/VBox/Runtime/common/vfs/vfsstdpipe.cpp
r93115 r94291 256 256 rtVfsStdPipe_Close, 257 257 rtVfsStdPipe_QueryInfo, 258 NULL, 258 259 RTVFSOBJOPS_VERSION 259 260 },
Note:
See TracChangeset
for help on using the changeset viewer.