Changeset 13580 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Oct 27, 2008 2:04:18 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 38479
- Location:
- trunk/src/VBox/Devices/Storage
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/RawHDDCore.cpp
r12638 r13580 777 777 int rc; 778 778 779 /* Image must be opened and the new flags must be valid. Just readonly flag780 * i ssupported. */781 if (!pImage || uOpenFlags & ~VD_OPEN_FLAGS_READONLY)779 /* Image must be opened and the new flags must be valid. Just readonly and 780 * info flags are supported. */ 781 if (!pImage || (uOpenFlags & ~(VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_INFO))) 782 782 { 783 783 rc = VERR_INVALID_PARAMETER; -
trunk/src/VBox/Devices/Storage/VBoxHDD-new.cpp
r13295 r13580 973 973 rc = RTDirOpenFiltered(&pPluginDir, pszPluginFilter, RTDIRFILTER_WINNT); 974 974 if (RT_FAILURE(rc)) 975 { 976 if (rc == VERR_FILE_NOT_FOUND) 977 { 978 /* VERR_FILE_NOT_FOUND would be interpreted as the hard 979 * disk storage unit was not found, so replace with 980 * VERR_NOT_SUPPORTED which is more meaningful in this case */ 981 rc = VERR_NOT_SUPPORTED; 982 } 975 983 break; 984 } 976 985 977 986 PRTDIRENTRYEX pPluginDirEntry = NULL; -
trunk/src/VBox/Devices/Storage/VDIHDDCore.cpp
r13427 r13580 1420 1420 static int vdiSetOpenFlags(void *pBackendData, unsigned uOpenFlags) 1421 1421 { 1422 LogFlowFunc(("pBackendData=%#p \n uOpenFlags=%#x", pBackendData, uOpenFlags));1422 LogFlowFunc(("pBackendData=%#p uOpenFlags=%#x\n", pBackendData, uOpenFlags)); 1423 1423 PVDIIMAGEDESC pImage = (PVDIIMAGEDESC)pBackendData; 1424 1424 int rc; 1425 1425 const char *pszFilename; 1426 1426 1427 /* Image must be opened and the new flags must be valid. Just readonly flag1428 * i ssupported. */1429 if (!pImage || uOpenFlags & ~VD_OPEN_FLAGS_READONLY)1427 /* Image must be opened and the new flags must be valid. Just readonly and 1428 * info flags are supported. */ 1429 if (!pImage || (uOpenFlags & ~(VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_INFO))) 1430 1430 { 1431 1431 rc = VERR_INVALID_PARAMETER; -
trunk/src/VBox/Devices/Storage/VHDHDDCore.cpp
r13571 r13580 775 775 int rc; 776 776 777 /* Image must be opened and the new flags must be valid. Just readonly flag778 * i ssupported. */779 if (!pImage || uOpenFlags & ~VD_OPEN_FLAGS_READONLY)777 /* Image must be opened and the new flags must be valid. Just readonly and 778 * info flags are supported. */ 779 if (!pImage || (uOpenFlags & ~(VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_INFO))) 780 780 { 781 781 rc = VERR_INVALID_PARAMETER; -
trunk/src/VBox/Devices/Storage/VmdkHDDCore.cpp
r13295 r13580 4666 4666 int rc; 4667 4667 4668 /* Image must be opened and the new flags must be valid. Just readonly flag4669 * i ssupported. */4670 if (!pImage || uOpenFlags & ~(VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_ASYNC_IO))4668 /* Image must be opened and the new flags must be valid. Just readonly and 4669 * info flags are supported. */ 4670 if (!pImage || (uOpenFlags & ~(VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_INFO | VD_OPEN_FLAGS_ASYNC_IO))) 4671 4671 { 4672 4672 rc = VERR_INVALID_PARAMETER;
Note:
See TracChangeset
for help on using the changeset viewer.