Changeset 43739 in vbox for trunk/src/VBox/Storage
- Timestamp:
- Oct 25, 2012 1:51:28 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/VD.cpp
r43141 r43739 6854 6854 fLockWrite = true; 6855 6855 6856 /* Update parent UUID so that image chain is consistent. */ 6856 /* Update parent UUID so that image chain is consistent. 6857 * The two attempts work around the problem that some backends 6858 * (e.g. iSCSI) do not support UUIDs, so we exploit the fact that 6859 * so far there can only be one such image in the chain. */ 6860 /** @todo needs a better long-term solution, passing the UUID 6861 * knowledge from the caller or some such */ 6857 6862 RTUUID Uuid; 6858 6863 PVDIMAGE pImageChild = NULL; … … 6861 6866 if (pImageFrom->pPrev) 6862 6867 { 6868 /* plan A: ask the parent itself for its UUID */ 6863 6869 rc = pImageFrom->pPrev->Backend->pfnGetUuid(pImageFrom->pPrev->pBackendData, 6864 6870 &Uuid); 6871 if (RT_FAILURE(rc)) 6872 { 6873 /* plan B: ask the child of the parent for parent UUID */ 6874 rc = pImageFrom->Backend->pfnGetParentUuid(pImageFrom->pBackendData, 6875 &Uuid); 6876 } 6865 6877 AssertRC(rc); 6866 6878 } … … 6876 6888 if (pImageFrom->pNext) 6877 6889 { 6890 /* plan A: ask the parent itself for its UUID */ 6878 6891 rc = pImageTo->Backend->pfnGetUuid(pImageTo->pBackendData, 6879 6892 &Uuid); 6893 if (RT_FAILURE(rc)) 6894 { 6895 /* plan B: ask the child of the parent for parent UUID */ 6896 rc = pImageTo->pNext->Backend->pfnGetParentUuid(pImageTo->pNext->pBackendData, 6897 &Uuid); 6898 } 6880 6899 AssertRC(rc); 6881 6900
Note:
See TracChangeset
for help on using the changeset viewer.