Changeset 37246 in vbox for trunk/src/VBox/Storage/VMDK.cpp
- Timestamp:
- May 30, 2011 8:33:24 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/VMDK.cpp
r37100 r37246 5 5 6 6 /* 7 * Copyright (C) 2006-201 0Oracle Corporation7 * Copyright (C) 2006-2011 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 2704 2704 if (RT_FAILURE(rc)) 2705 2705 { 2706 rc = vmdkError(pImage, rc, RT_SRC_POS, N_("VMDK: error reading extent header in '%s'"), pExtent->pszFullname); 2706 vmdkError(pImage, rc, RT_SRC_POS, N_("VMDK: error reading extent header in '%s'"), pExtent->pszFullname); 2707 rc = VERR_VD_VMDK_INVALID_HEADER; 2707 2708 goto out; 2708 2709 } … … 2742 2743 if (RT_FAILURE(rc)) 2743 2744 { 2744 rc = vmdkError(pImage, rc, RT_SRC_POS, N_("VMDK: error reading extent footer in '%s'"), pExtent->pszFullname); 2745 vmdkError(pImage, rc, RT_SRC_POS, N_("VMDK: error reading extent footer in '%s'"), pExtent->pszFullname); 2746 rc = VERR_VD_VMDK_INVALID_HEADER; 2745 2747 goto out; 2746 2748 } … … 3025 3027 AssertRC(rc); 3026 3028 if (RT_FAILURE(rc)) 3027 goto out; 3029 { 3030 vmdkError(pImage, rc, RT_SRC_POS, N_("VMDK: error reading ESX sparse extent header in '%s'"), pExtent->pszFullname); 3031 rc = VERR_VD_VMDK_INVALID_HEADER; 3032 goto out; 3033 } 3028 3034 if ( RT_LE2H_U32(Header.magicNumber) != VMDK_ESX_SPARSE_MAGICNUMBER 3029 3035 || RT_LE2H_U32(Header.version) != 1 … … 3240 3246 if (RT_FAILURE(rc)) 3241 3247 { 3242 rc = vmdkError(pImage, rc, RT_SRC_POS, N_("VMDK: error reading the magic number in '%s'"), pImage->pszFilename); 3248 vmdkError(pImage, rc, RT_SRC_POS, N_("VMDK: error reading the magic number in '%s'"), pImage->pszFilename); 3249 rc = VERR_VD_VMDK_INVALID_HEADER; 3243 3250 goto out; 3244 3251 }
Note:
See TracChangeset
for help on using the changeset viewer.