Lines Matching defs:pszFilename

129     const char       *pszFilename;
266 static int vhdFilenameToUtf16(const char *pszFilename, uint16_t *pu16Buf,
274 rc = RTStrToUtf16(pszFilename, &tmp16);
301 static int vhdLocatorUpdate(PVHDIMAGE pImage, PVHDPLE pLocator, const char *pszFilename)
315 if (RTPathStartsWithRoot(pszFilename))
319 rc = RTPathCalcRelative(szPath, sizeof(szPath), pImage->pszFilename,
320 pszFilename);
336 cb = (uint32_t)strlen(pszFilename);
342 memcpy(pvBuf, pszFilename, cb);
350 rc = RTPathAbs(pszFilename, (char *)pvBuf, cbMaxLen);
355 if (RTPathStartsWithRoot(pszFilename))
359 rc = RTPathCalcRelative(szPath, sizeof(szPath), pImage->pszFilename,
360 pszFilename);
367 rc = vhdFilenameToUtf16(pszFilename, (uint16_t *)pvBuf, cbMaxLen, &cb, false);
381 rc = RTPathAbs(pszFilename, pszTmp, cbMaxLen);
578 if (fDelete && pImage->pszFilename)
579 vdIfIoIntFileDelete(pImage->pIfIo, pImage->pszFilename);
804 int rc = vdIfIoIntFileOpen(pImage->pIfIo, pImage->pszFilename,
1057 return vdIfError(pImage->pIfError, VERR_NO_MEMORY, RT_SRC_POS, N_("VHD: cannot set the file size for '%s'"), pImage->pszFilename);
1064 return vdIfError(pImage->pIfError, rc, RT_SRC_POS, N_("VHD: cannot set the file size for '%s'"), pImage->pszFilename);
1083 return vdIfError(pImage->pIfError, rc, RT_SRC_POS, N_("VHD: cannot write dynamic disk header to image '%s'"), pImage->pszFilename);
1090 return vdIfError(pImage->pIfError, rc, RT_SRC_POS, N_("VHD: cannot write BAT to image '%s'"), pImage->pszFilename);
1115 rc = vdIfIoIntFileOpen(pImage->pIfIo, pImage->pszFilename,
1120 return vdIfError(pImage->pIfError, rc, RT_SRC_POS, N_("VHD: cannot create image '%s'"), pImage->pszFilename);
1165 vdIfError(pImage->pIfError, rc, RT_SRC_POS, N_("VHD: cannot set the file size for '%s'"), pImage->pszFilename);
1211 vdIfError(pImage->pIfError, rc, RT_SRC_POS, N_("VHD: cannot write footer to image '%s'"), pImage->pszFilename);
1222 vdIfError(pImage->pIfError, rc, RT_SRC_POS, N_("VHD: cannot write a copy of footer to image '%s'"), pImage->pszFilename);
1238 static int vhdCheckIfValid(const char *pszFilename, PVDINTERFACE pVDIfsDisk,
1241 LogFlowFunc(("pszFilename=\"%s\" pVDIfsDisk=%#p pVDIfsImage=%#p\n", pszFilename, pVDIfsDisk, pVDIfsImage));
1250 rc = vdIfIoIntFileOpen(pIfIo, pszFilename,
1295 static int vhdOpen(const char *pszFilename, unsigned uOpenFlags,
1299 LogFlowFunc(("pszFilename=\"%s\" uOpenFlags=%#x pVDIfsDisk=%#p pVDIfsImage=%#p enmType=%u ppBackendData=%#p\n", pszFilename, uOpenFlags, pVDIfsDisk, pVDIfsImage, enmType, ppBackendData));
1313 if ( !VALID_PTR(pszFilename)
1314 || !*pszFilename)
1327 pImage->pszFilename = pszFilename;
1344 static int vhdCreate(const char *pszFilename, uint64_t cbSize,
1353 LogFlowFunc(("pszFilename=\"%s\" cbSize=%llu uImageFlags=%#x pszComment=\"%s\" pPCHSGeometry=%#p pLCHSGeometry=%#p Uuid=%RTuuid uOpenFlags=%#x uPercentStart=%u uPercentSpan=%u pVDIfsDisk=%#p pVDIfsImage=%#p pVDIfsOperation=%#p enmType=%u ppBackendData=%#p",
1354 pszFilename, cbSize, uImageFlags, pszComment, pPCHSGeometry, pLCHSGeometry, pUuid, uOpenFlags, uPercentStart, uPercentSpan, pVDIfsDisk, pVDIfsImage, pVDIfsOperation, enmType, ppBackendData));
1389 pImage->pszFilename = pszFilename;
1431 static int vhdRename(void *pBackendData, const char *pszFilename)
1433 LogFlowFunc(("pBackendData=%#p pszFilename=%#p\n", pBackendData, pszFilename));
1439 || !pszFilename
1440 || !*pszFilename)
1452 rc = vdIfIoIntFileMove(pImage->pIfIo, pImage->pszFilename, pszFilename, 0);
1464 pImage->pszFilename = pszFilename;
2336 rc = vdIfIoIntFileGetModificationTime(pImage->pIfIo, pImage->pszFilename, pTimeStamp);
2854 static DECLCALLBACK(int) vhdRepair(const char *pszFilename, PVDINTERFACE pVDIfsDisk,
2857 LogFlowFunc(("pszFilename=\"%s\" pVDIfsDisk=%#p pVDIfsImage=%#p\n", pszFilename, pVDIfsDisk, pVDIfsImage));
2884 rc = vdIfIoIntFileOpen(pIfIo, pszFilename,
2892 rc = vdIfError(pIfError, rc, RT_SRC_POS, "Failed to open image \"%s\"", pszFilename);