Changeset 51625 in vbox for trunk/src/VBox/Storage
- Timestamp:
- Jun 16, 2014 8:01:10 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 94368
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/QED.cpp
r50988 r51625 5 5 6 6 /* 7 * Copyright (C) 2011-201 3Oracle Corporation7 * Copyright (C) 2011-2014 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 1181 1181 1182 1182 /* 1183 * Create the L2 cache before opening the image so we can call qedFreeImage() 1184 * even if opening the image file fails. 1185 */ 1186 rc = qedL2TblCacheCreate(pImage); 1187 if (RT_FAILURE(rc)) 1188 { 1189 rc = vdIfError(pImage->pIfError, rc, RT_SRC_POS, 1190 N_("Qed: Creating the L2 table cache for image '%s' failed"), 1191 pImage->pszFilename); 1192 1193 goto out; 1194 } 1195 1196 /* 1183 1197 * Open the image. 1184 1198 */ … … 1257 1271 { 1258 1272 qedTableConvertToHostEndianess(pImage->paL1Table, pImage->cTableEntries); 1259 rc = qedL2TblCacheCreate(pImage); 1260 if (RT_SUCCESS(rc)) 1261 { 1262 /* If the consistency check succeeded, clear the flag by flushing the image. */ 1263 if (Header.u64FeatureFlags & QED_FEATURE_NEED_CHECK) 1264 rc = qedFlushImage(pImage); 1265 } 1266 else 1267 rc = vdIfError(pImage->pIfError, rc, RT_SRC_POS, 1268 N_("Qed: Creating the L2 table cache for image '%s' failed"), 1269 pImage->pszFilename); 1273 1274 /* If the consistency check succeeded, clear the flag by flushing the image. */ 1275 if (Header.u64FeatureFlags & QED_FEATURE_NEED_CHECK) 1276 rc = qedFlushImage(pImage); 1270 1277 } 1271 1278 else
Note:
See TracChangeset
for help on using the changeset viewer.