Changeset 15366 in vbox for trunk/include
- Timestamp:
- Dec 12, 2008 1:50:32 PM (16 years ago)
- Location:
- trunk/include/VBox
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxHDD-new.h
r14967 r15366 1049 1049 typedef struct VDBACKENDINFO 1050 1050 { 1051 /** Name of the backend. */1051 /** Name of the backend. Must be unique even with case insensitive comparison. */ 1052 1052 const char *pszBackend; 1053 1053 /** Capabilities of the backend (a combination of the VD_CAP_* flags). */ … … 1116 1116 * 1117 1117 * @return VBox status code. 1118 * @param pszBackend The backend name .1118 * @param pszBackend The backend name (case insensitive). 1119 1119 * @param pEntries Pointer to an entry. 1120 1120 */ … … 1164 1164 * @return VBox status code. 1165 1165 * @param pDisk Pointer to HDD container. 1166 * @param pszBackend Name of the image file backend to use .1166 * @param pszBackend Name of the image file backend to use (case insensitive). 1167 1167 * @param pszFilename Name of the image file to open. 1168 1168 * @param uOpenFlags Image file open mode, see VD_OPEN_FLAGS_* constants. … … 1178 1178 * @return VBox status code. 1179 1179 * @param pDisk Pointer to HDD container. 1180 * @param pszBackend Name of the image file backend to use .1180 * @param pszBackend Name of the image file backend to use (case insensitive). 1181 1181 * @param pszFilename Name of the image file to create. 1182 1182 * @param enmType Image type, only base image types are acceptable. … … 1207 1207 * @return VBox status code. 1208 1208 * @param pDisk Pointer to HDD container. 1209 * @param pszBackend Name of the image file backend to use .1209 * @param pszBackend Name of the image file backend to use (case insensitive). 1210 1210 * @param pszFilename Name of the differencing image file to create. 1211 1211 * @param uImageFlags Flags specifying special image features. … … 1229 1229 * 1230 1230 * @return VBox status code. 1231 * @return VERR_VD I_IMAGE_NOT_FOUND if image with specified number was not opened.1231 * @return VERR_VD_IMAGE_NOT_FOUND if image with specified number was not opened. 1232 1232 * @param pDisk Pointer to HDD container. 1233 1233 * @param nImageFrom Name of the image file to merge from. … … 1249 1249 * 1250 1250 * @return VBox status code. 1251 * @return VERR_VD I_IMAGE_NOT_FOUND if image with specified number was not opened.1251 * @return VERR_VD_IMAGE_NOT_FOUND if image with specified number was not opened. 1252 1252 * @param pDiskFrom Pointer to source HDD container. 1253 1253 * @param nImage Image number, counts from 0. 0 is always base image of container. 1254 1254 * @param pDiskTo Pointer to destination HDD container. 1255 * @param pszBackend Name of the image file backend to use (may be NULL to use the same as the source ).1255 * @param pszBackend Name of the image file backend to use (may be NULL to use the same as the source, case insensitive). 1256 1256 * @param pszFilename New name of the image (may be NULL if pDiskFrom == pDiskTo). 1257 1257 * @param fMoveByRename If true, attempt to perform a move by renaming (if successful the new size is ignored). … … 1277 1277 * 1278 1278 * @return VBox status code. 1279 * @return VERR_VD I_NOT_OPENED if no image is opened in HDD container.1279 * @return VERR_VD_NOT_OPENED if no image is opened in HDD container. 1280 1280 * @param pDisk Pointer to HDD container. 1281 1281 * @param fDelete If true, delete the image from the host disk. … … 1295 1295 * 1296 1296 * @return VBox status code. 1297 * @return VERR_VD I_NOT_OPENED if no image is opened in HDD container.1297 * @return VERR_VD_NOT_OPENED if no image is opened in HDD container. 1298 1298 * @param pDisk Pointer to HDD container. 1299 1299 * @param uOffset Offset of first reading byte from start of disk. … … 1309 1309 * 1310 1310 * @return VBox status code. 1311 * @return VERR_VD I_NOT_OPENED if no image is opened in HDD container.1311 * @return VERR_VD_NOT_OPENED if no image is opened in HDD container. 1312 1312 * @param pDisk Pointer to HDD container. 1313 1313 * @param uOffset Offset of first writing byte from start of disk. … … 1323 1323 * 1324 1324 * @return VBox status code. 1325 * @return VERR_VD I_NOT_OPENED if no image is opened in HDD container.1325 * @return VERR_VD_NOT_OPENED if no image is opened in HDD container. 1326 1326 * @param pDisk Pointer to HDD container. 1327 1327 */ … … 1369 1369 * 1370 1370 * @return VBox status code. 1371 * @return VERR_VD I_IMAGE_NOT_FOUND if image with specified number was not opened.1372 * @return VERR_VD I_GEOMETRY_NOT_SET if no geometry present in the HDD container.1371 * @return VERR_VD_IMAGE_NOT_FOUND if image with specified number was not opened. 1372 * @return VERR_VD_GEOMETRY_NOT_SET if no geometry present in the HDD container. 1373 1373 * @param pDisk Pointer to HDD container. 1374 1374 * @param nImage Image number, counts from 0. 0 is always base image of container. … … 1382 1382 * 1383 1383 * @return VBox status code. 1384 * @return VERR_VD I_IMAGE_NOT_FOUND if image with specified number was not opened.1384 * @return VERR_VD_IMAGE_NOT_FOUND if image with specified number was not opened. 1385 1385 * @param pDisk Pointer to HDD container. 1386 1386 * @param nImage Image number, counts from 0. 0 is always base image of container. … … 1394 1394 * 1395 1395 * @return VBox status code. 1396 * @return VERR_VD I_IMAGE_NOT_FOUND if image with specified number was not opened.1397 * @return VERR_VD I_GEOMETRY_NOT_SET if no geometry present in the HDD container.1396 * @return VERR_VD_IMAGE_NOT_FOUND if image with specified number was not opened. 1397 * @return VERR_VD_GEOMETRY_NOT_SET if no geometry present in the HDD container. 1398 1398 * @param pDisk Pointer to HDD container. 1399 1399 * @param nImage Image number, counts from 0. 0 is always base image of container. … … 1407 1407 * 1408 1408 * @return VBox status code. 1409 * @return VERR_VD I_IMAGE_NOT_FOUND if image with specified number was not opened.1409 * @return VERR_VD_IMAGE_NOT_FOUND if image with specified number was not opened. 1410 1410 * @param pDisk Pointer to HDD container. 1411 1411 * @param nImage Image number, counts from 0. 0 is always base image of container. … … 1419 1419 * 1420 1420 * @return VBox status code. 1421 * @return VERR_VD I_IMAGE_NOT_FOUND if image with specified number was not opened.1421 * @return VERR_VD_IMAGE_NOT_FOUND if image with specified number was not opened. 1422 1422 * @param pDisk Pointer to HDD container. 1423 1423 * @param nImage Image number, counts from 0. 0 is always base image of container. … … 1431 1431 * 1432 1432 * @return VBox status code. 1433 * @return VERR_VD I_IMAGE_NOT_FOUND if image with specified number was not opened.1433 * @return VERR_VD_IMAGE_NOT_FOUND if image with specified number was not opened. 1434 1434 * @param pDisk Pointer to HDD container. 1435 1435 * @param nImage Image number, counts from 0. 0 is always base image of container. … … 1443 1443 * 1444 1444 * @return VBox status code. 1445 * @return VERR_VD I_IMAGE_NOT_FOUND if image with specified number was not opened.1445 * @return VERR_VD_IMAGE_NOT_FOUND if image with specified number was not opened. 1446 1446 * @param pDisk Pointer to the HDD container. 1447 1447 * @param nImage Image number, counts from 0. 0 is always base image of container. … … 1455 1455 * 1456 1456 * @return VBox status code. 1457 * @return VERR_VD I_IMAGE_NOT_FOUND if image with specified number was not opened.1457 * @return VERR_VD_IMAGE_NOT_FOUND if image with specified number was not opened. 1458 1458 * @param pDisk Pointer to HDD container. 1459 1459 * @param nImage Image number, counts from 0. 0 is always base image of container. … … 1466 1466 * 1467 1467 * @return VBox status code. 1468 * @return VERR_VD I_IMAGE_NOT_FOUND if image with specified number was not opened.1468 * @return VERR_VD_IMAGE_NOT_FOUND if image with specified number was not opened. 1469 1469 * @param pDisk Pointer to HDD container. 1470 1470 * @param nImage Image number, counts from 0. 0 is always base image of container. … … 1480 1480 * 1481 1481 * @return VBox status code. 1482 * @return VERR_VD I_IMAGE_NOT_FOUND if image with specified number was not opened.1482 * @return VERR_VD_IMAGE_NOT_FOUND if image with specified number was not opened. 1483 1483 * @param pDisk Pointer to HDD container. 1484 1484 * @param nImage Image number, counts from 0. 0 is always base image of container. … … 1494 1494 * 1495 1495 * @return VBox status code. 1496 * @return VERR_VD I_IMAGE_NOT_FOUND if image with specified number was not opened.1496 * @return VERR_VD_IMAGE_NOT_FOUND if image with specified number was not opened. 1497 1497 * @return VERR_BUFFER_OVERFLOW if pszFilename buffer too small to hold filename. 1498 1498 * @param pDisk Pointer to HDD container. … … 1508 1508 * 1509 1509 * @return VBox status code. 1510 * @return VERR_VD I_IMAGE_NOT_FOUND if image with specified number was not opened.1510 * @return VERR_VD_IMAGE_NOT_FOUND if image with specified number was not opened. 1511 1511 * @return VERR_BUFFER_OVERFLOW if pszComment buffer too small to hold comment text. 1512 1512 * @param pDisk Pointer to HDD container. … … 1522 1522 * 1523 1523 * @return VBox status code. 1524 * @return VERR_VD I_IMAGE_NOT_FOUND if image with specified number was not opened.1524 * @return VERR_VD_IMAGE_NOT_FOUND if image with specified number was not opened. 1525 1525 * @param pDisk Pointer to HDD container. 1526 1526 * @param nImage Image number, counts from 0. 0 is always base image of container. … … 1534 1534 * 1535 1535 * @return VBox status code. 1536 * @return VERR_VD I_IMAGE_NOT_FOUND if image with specified number was not opened.1536 * @return VERR_VD_IMAGE_NOT_FOUND if image with specified number was not opened. 1537 1537 * @param pDisk Pointer to HDD container. 1538 1538 * @param nImage Image number, counts from 0. 0 is always base image of container. … … 1545 1545 * 1546 1546 * @return VBox status code. 1547 * @return VERR_VD I_IMAGE_NOT_FOUND if image with specified number was not opened.1547 * @return VERR_VD_IMAGE_NOT_FOUND if image with specified number was not opened. 1548 1548 * @param pDisk Pointer to HDD container. 1549 1549 * @param nImage Image number, counts from 0. 0 is always base image of container. … … 1556 1556 * 1557 1557 * @return VBox status code. 1558 * @return VERR_VD I_IMAGE_NOT_FOUND if image with specified number was not opened.1558 * @return VERR_VD_IMAGE_NOT_FOUND if image with specified number was not opened. 1559 1559 * @param pDisk Pointer to HDD container. 1560 1560 * @param nImage Image number, counts from 0. 0 is always base image of container. … … 1568 1568 * 1569 1569 * @return VBox status code. 1570 * @return VERR_VD I_IMAGE_NOT_FOUND if image with specified number was not opened.1570 * @return VERR_VD_IMAGE_NOT_FOUND if image with specified number was not opened. 1571 1571 * @param pDisk Pointer to HDD container. 1572 1572 * @param nImage Image number, counts from 0. 0 is always base image of container. … … 1580 1580 * 1581 1581 * @return VBox status code. 1582 * @return VERR_VD I_IMAGE_NOT_FOUND if image with specified number was not opened.1582 * @return VERR_VD_IMAGE_NOT_FOUND if image with specified number was not opened. 1583 1583 * @param pDisk Pointer to HDD container. 1584 1584 * @param nImage Image number, counts from 0. 0 is always base image of the container. … … 1612 1612 * 1613 1613 * @return VBox status code. 1614 * @return VERR_VD I_IMAGE_NOT_FOUND if image with specified number was not opened.1614 * @return VERR_VD_IMAGE_NOT_FOUND if image with specified number was not opened. 1615 1615 * @param pDisk Pointer to the HDD container. 1616 1616 * @param nImage Image number, counts from 0. 0 is always base image of container. -
trunk/include/VBox/err.h
r15284 r15366 1030 1030 1031 1031 1032 /** @name VBox HDD Container (VDI) Status Codes 1033 * @{ 1034 */ 1035 /** Invalid image file header. */ 1036 #define VERR_VDI_INVALID_HEADER (-3200) 1037 /** Invalid image file header: invalid signature. */ 1038 #define VERR_VDI_INVALID_SIGNATURE (-3201) 1039 /** Invalid image file header: invalid version. */ 1040 #define VERR_VDI_UNSUPPORTED_VERSION (-3202) 1032 /** @name VBox HDD Container (VD) Status Codes 1033 * @{ 1034 */ 1041 1035 /** Invalid image type. */ 1042 #define VERR_VDI_INVALID_TYPE (-3203) 1043 /** Invalid image flags. */ 1044 #define VERR_VDI_INVALID_FLAGS (-3204) 1036 #define VERR_VD_INVALID_TYPE (-3200) 1045 1037 /** Operation can't be done in current HDD container state. */ 1046 #define VERR_VDI_INVALID_STATE (-3205) 1047 /** Differencing image can't be used with current base image. */ 1048 #define VERR_VDI_WRONG_DIFF_IMAGE (-3206) 1049 /** Two or more images of one HDD has different versions. */ 1050 #define VERR_VDI_IMAGES_VERSION_MISMATCH (-3207) 1038 #define VERR_VD_INVALID_STATE (-3201) 1039 /** Configuration value not found. */ 1040 #define VERR_VD_VALUE_NOT_FOUND (-3202) 1041 /** Virtual HDD is not opened. */ 1042 #define VERR_VD_NOT_OPENED (-3203) 1043 /** Requested image is not opened. */ 1044 #define VERR_VD_IMAGE_NOT_FOUND (-3204) 1045 /** Image is read-only. */ 1046 #define VERR_VD_IMAGE_READ_ONLY (-3205) 1047 /** Geometry hasn't been set. */ 1048 #define VERR_VD_GEOMETRY_NOT_SET (-3206) 1049 /** No data for this block in image. */ 1050 #define VERR_VD_BLOCK_FREE (-3207) 1051 1051 /** Differencing and parent images can't be used together due to UUID. */ 1052 #define VERR_VDI_IMAGES_UUID_MISMATCH (-3208) 1053 /** No differencing images to commit. */ 1054 #define VERR_VDI_NO_DIFF_IMAGES (-3209) 1055 /** Virtual HDD is not opened. */ 1056 #define VERR_VDI_NOT_OPENED (-3210) 1057 /** Requested image is not opened. */ 1058 #define VERR_VDI_IMAGE_NOT_FOUND (-3211) 1059 /** Image is read-only. */ 1060 #define VERR_VDI_IMAGE_READ_ONLY (-3212) 1052 #define VERR_VD_UUID_MISMATCH (-3208) 1053 /** Asynchronous I/O request finished. */ 1054 #define VINF_VD_ASYNC_IO_FINISHED 3209 1055 /** Asynchronous I/O is not finished yet. */ 1056 #define VERR_VD_ASYNC_IO_IN_PROGRESS (-3210) 1057 /** Generic: Invalid image file header. Use this for plugins. */ 1058 #define VERR_VD_GEN_INVALID_HEADER (-3220) 1059 /** VDI: Invalid image file header. */ 1060 #define VERR_VD_VDI_INVALID_HEADER (-3230) 1061 /** VDI: Invalid image file header: invalid signature. */ 1062 #define VERR_VD_VDI_INVALID_SIGNATURE (-3231) 1063 /** VDI: Invalid image file header: invalid version. */ 1064 #define VERR_VD_VDI_UNSUPPORTED_VERSION (-3232) 1061 1065 /** Comment string is too long. */ 1062 #define VERR_VDI_COMMENT_TOO_LONG (-3213) 1063 /** Geometry hasn't been set. */ 1064 #define VERR_VDI_GEOMETRY_NOT_SET (-3214) 1065 /** No data for this block in image. */ 1066 #define VERR_VDI_BLOCK_FREE (-3215) 1067 /** Configuration value not found. */ 1068 #define VERR_VDI_VALUE_NOT_FOUND (-3216) 1069 /** Configuration value is unknown. This indicates misconfiguration. */ 1070 #define VERR_VDI_UNKNOWN_CFG_VALUES (-3217) 1071 /** Asynchronous I/O request finished. */ 1072 #define VINF_VDI_ASYNC_IO_FINISHED 3218 1073 /** Asynchronous I/O is not finished yet. */ 1074 #define VERR_VDI_ASYNC_IO_IN_PROGRESS (-3219) 1066 #define VERR_VD_VDI_COMMENT_TOO_LONG (-3233) 1067 /** VMDK: Invalid image file header. */ 1068 #define VERR_VD_VMDK_INVALID_HEADER (-3240) 1069 /** VMDK: Invalid image file header: invalid version. */ 1070 #define VERR_VD_VMDK_UNSUPPORTED_VERSION (-3241) 1071 /** VMDK: Image property not found. */ 1072 #define VERR_VD_VMDK_VALUE_NOT_FOUND (-3242) 1073 /** VMDK: Operation can't be done in current image state. */ 1074 #define VERR_VD_VMDK_INVALID_STATE (-3243) 1075 /** iSCSI: Invalid header, i.e. dummy for validity check. */ 1076 #define VERR_VD_ISCSI_INVALID_HEADER (-3250) 1077 /** iSCSI: Configuration value is unknown. This indicates misconfiguration. */ 1078 #define VERR_VD_ISCSI_UNKNOWN_CFG_VALUES (-3251) 1079 /** iSCSI: Interface is unknown. This indicates misconfiguration. */ 1080 #define VERR_VD_ISCSI_UNKNOWN_INTERFACE (-3252) 1081 /** iSCSI: Operation can't be done in current image state. */ 1082 #define VERR_VD_ISCSI_INVALID_STATE (-3253) 1083 /** iSCSI: Invalid device type (not a disk). */ 1084 #define VERR_VD_ISCSI_INVALID_TYPE (-3254) 1085 /** VHD: Invalid image file header. */ 1086 #define VERR_VD_VHD_INVALID_HEADER (-3260) 1087 /** Raw: Invalid image file header. */ 1088 #define VERR_VD_RAW_INVALID_HEADER (-3270) 1089 /** Raw: Invalid image file type. */ 1090 #define VERR_VD_RAW_INVALID_TYPE (-3271) 1075 1091 /** @} */ 1076 1092
Note:
See TracChangeset
for help on using the changeset viewer.