Lines Matching defs:pszFilename

114     char               *pszFilename;
145 char *pszFilename;
614 char *pszFilename;
3558 * @param pszFilename The filename to check.
3560 static bool vdPluginFind(const char *pszFilename)
3566 if (!RTStrCmp(pIt->pszFilename, pszFilename))
3578 * @param pszFilename The associated filename, used for finding duplicates.
3580 static int vdAddPlugin(RTLDRMOD hPlugin, const char *pszFilename)
3588 pPlugin->pszFilename = RTStrDup(pszFilename);
3589 if (pPlugin->pszFilename)
3603 static int vdRemovePlugin(const char *pszFilename)
3609 if (!RTStrCmp(pIt->pszFilename, pszFilename))
3652 RTStrFree(pIt->pszFilename);
3663 * @param pszFilename The plugin filename to load.
3665 static int vdPluginLoadFromFilename(const char *pszFilename)
3669 if (vdPluginFind(pszFilename))
3673 int rc = SUPR3HardenedLdrLoadPlugIn(pszFilename, &hPlugin, NULL);
3687 VD_PLUGIN_LOAD_NAME, pszFilename, rc, pfnVDPluginLoad));
3698 LogFunc(("ignored plugin '%s': rc=%Rrc\n", pszFilename, rc));
3702 vdAddPlugin(hPlugin, pszFilename);
3822 * @param pszFilename The plugin filename to unload.
3824 static int vdPluginUnloadFromFilename(const char *pszFilename)
3827 return vdRemovePlugin(pszFilename);
5704 RTStrFree(pPlugin->pszFilename);
5717 * @param pszFilename The plugin filename to load.
5719 VBOXDDU_DECL(int) VDPluginLoadFromFilename(const char *pszFilename)
5728 return vdPluginLoadFromFilename(pszFilename);
5753 * @param pszFilename The plugin filename to unload.
5755 VBOXDDU_DECL(int) VDPluginUnloadFromFilename(const char *pszFilename)
5764 return vdPluginUnloadFromFilename(pszFilename);
6077 * @param pszFilename Name of the image file for which the backend is queried.
6082 const char *pszFilename, char **ppszFormat, VDTYPE *penmType)
6089 LogFlowFunc(("pszFilename=\"%s\"\n", pszFilename));
6091 AssertMsgReturn(VALID_PTR(pszFilename) && *pszFilename,
6092 ("pszFilename=%#p \"%s\"\n", pszFilename, pszFilename),
6139 rc = g_apBackends[i]->pfnCheckIfValid(pszFilename, pVDIfsDisk,
6182 rc = g_apCacheBackends[i]->pfnProbe(pszFilename, pVDIfsDisk,
6223 * @param pszFilename Name of the image file to open.
6228 const char *pszFilename, unsigned uOpenFlags,
6236 LogFlowFunc(("pDisk=%#p pszBackend=\"%s\" pszFilename=\"%s\" uOpenFlags=%#x, pVDIfsImage=%#p\n",
6237 pDisk, pszBackend, pszFilename, uOpenFlags, pVDIfsImage));
6249 AssertMsgBreakStmt(VALID_PTR(pszFilename) && *pszFilename,
6250 ("pszFilename=%#p \"%s\"\n", pszFilename, pszFilename),
6282 pImage->pszFilename = RTStrDup(pszFilename);
6283 if (!pImage->pszFilename)
6345 rc = pImage->Backend->pfnOpen(pImage->pszFilename,
6359 rc = pImage->Backend->pfnRepair(pszFilename, pDisk->pVDIfsDisk, pImage->pVDIfsImage, 0 /* fFlags */);
6361 rc = pImage->Backend->pfnOpen(pImage->pszFilename,
6370 N_("VD: error %Rrc repairing corrupted image file '%s'"), rc, pszFilename);
6377 N_("VD: Image file '%s' is corrupted and can't be opened"), pszFilename);
6390 rc = pImage->Backend->pfnOpen(pImage->pszFilename,
6400 N_("VD: error %Rrc opening image file '%s'"), rc, pszFilename);
6534 if (pImage->pszFilename)
6535 RTStrFree(pImage->pszFilename);
6550 * @param pszFilename Name of the cache image to open.
6555 const char *pszFilename, unsigned uOpenFlags,
6563 LogFlowFunc(("pDisk=%#p pszBackend=\"%s\" pszFilename=\"%s\" uOpenFlags=%#x, pVDIfsCache=%#p\n",
6564 pDisk, pszBackend, pszFilename, uOpenFlags, pVDIfsCache));
6576 AssertMsgBreakStmt(VALID_PTR(pszFilename) && *pszFilename,
6577 ("pszFilename=%#p \"%s\"\n", pszFilename, pszFilename),
6590 pCache->pszFilename = RTStrDup(pszFilename);
6591 if (!pCache->pszFilename)
6628 rc = pCache->Backend->pfnOpen(pCache->pszFilename,
6642 rc = pCache->Backend->pfnOpen(pCache->pszFilename,
6651 N_("VD: error %Rrc opening image file '%s'"), rc, pszFilename);
6716 if (pCache->pszFilename)
6717 RTStrFree(pCache->pszFilename);
6826 * @param pszFilename Name of the image file to create.
6838 const char *pszFilename, uint64_t cbSize,
6852 LogFlowFunc(("pDisk=%#p pszBackend=\"%s\" pszFilename=\"%s\" cbSize=%llu uImageFlags=%#x pszComment=\"%s\" PCHS=%u/%u/%u LCHS=%u/%u/%u Uuid=%RTuuid uOpenFlags=%#x pVDIfsImage=%#p pVDIfsOperation=%#p\n",
6853 pDisk, pszBackend, pszFilename, cbSize, uImageFlags, pszComment,
6871 AssertMsgBreakStmt(VALID_PTR(pszFilename) && *pszFilename,
6872 ("pszFilename=%#p \"%s\"\n", pszFilename, pszFilename),
6924 pImage->pszFilename = RTStrDup(pszFilename);
6925 if (!pImage->pszFilename)
6975 pszFilename);
6984 rc = pImage->Backend->pfnCreate(pImage->pszFilename, cbSize,
7090 if (pImage->pszFilename)
7091 RTStrFree(pImage->pszFilename);
7110 * @param pszFilename Name of the differencing image file to create.
7120 const char *pszFilename, unsigned uImageFlags,
7132 LogFlowFunc(("pDisk=%#p pszBackend=\"%s\" pszFilename=\"%s\" uImageFlags=%#x pszComment=\"%s\" Uuid=%RTuuid uOpenFlags=%#x pVDIfsImage=%#p pVDIfsOperation=%#p\n",
7133 pDisk, pszBackend, pszFilename, uImageFlags, pszComment, pUuid, uOpenFlags, pVDIfsImage, pVDIfsOperation));
7147 AssertMsgBreakStmt(VALID_PTR(pszFilename) && *pszFilename,
7148 ("pszFilename=%#p \"%s\"\n", pszFilename, pszFilename),
7199 pImage->pszFilename = RTStrDup(pszFilename);
7200 if (!pImage->pszFilename)
7252 pszFilename);
7261 rc = pImage->Backend->pfnCreate(pImage->pszFilename, pDisk->cbSize,
7332 rc2 = pImage->Backend->pfnSetParentFilename(pImage->pBackendData, pDisk->pLast->pszFilename);
7366 if (pImage->pszFilename)
7367 RTStrFree(pImage->pszFilename);
7385 * @param pszFilename Name of the differencing cache file to create.
7395 const char *pszFilename, uint64_t cbSize,
7406 LogFlowFunc(("pDisk=%#p pszBackend=\"%s\" pszFilename=\"%s\" cbSize=%llu uImageFlags=%#x pszComment=\"%s\" Uuid=%RTuuid uOpenFlags=%#x pVDIfsImage=%#p pVDIfsOperation=%#p\n",
7407 pDisk, pszBackend, pszFilename, cbSize, uImageFlags, pszComment, pUuid, uOpenFlags, pVDIfsCache, pVDIfsOperation));
7421 AssertMsgBreakStmt(VALID_PTR(pszFilename) && *pszFilename,
7422 ("pszFilename=%#p \"%s\"\n", pszFilename, pszFilename),
7457 pCache->pszFilename = RTStrDup(pszFilename);
7458 if (!pCache->pszFilename)
7502 pszFilename);
7510 rc = pCache->Backend->pfnCreate(pCache->pszFilename, cbSize,
7583 if (pCache->pszFilename)
7584 RTStrFree(pCache->pszFilename);
7965 RTMemFree(pImg->pszFilename);
8040 * @param pszFilename New name of the image (may be NULL to specify that the
8060 const char *pszBackend, const char *pszFilename,
8073 LogFlowFunc(("pDiskFrom=%#p nImage=%u pDiskTo=%#p pszBackend=\"%s\" pszFilename=\"%s\" fMoveByRename=%d cbSize=%llu nImageFromSame=%u nImageToSame=%u uImageFlags=%#x pDstUuid=%#p uOpenFlags=%#x pVDIfsOperation=%#p pDstVDIfsImage=%#p pDstVDIfsOperation=%#p\n",
8074 pDiskFrom, nImage, pDiskTo, pszBackend, pszFilename, fMoveByRename, cbSize, nImageFromSame, nImageToSame, uImageFlags, pDstUuid, uOpenFlags, pVDIfsOperation, pDstVDIfsImage, pDstVDIfsOperation));
8119 rc = pImageFrom->Backend->pfnRename(pImageFrom->pBackendData, pszFilename ? pszFilename : pImageFrom->pszFilename);
8129 /* pszFilename is allowed to be NULL, as this indicates copy to the existing image. */
8130 AssertMsgBreakStmt(pszFilename == NULL || (VALID_PTR(pszFilename) && *pszFilename),
8131 ("pszFilename=%#p \"%s\"\n", pszFilename, pszFilename),
8182 if (pszFilename)
8193 rc = VDCreateDiff(pDiskTo, pszBackend, pszFilename,
8211 rc = VDCreateBase(pDiskTo, pszBackend, pszFilename, cbSize,
8262 bool fSuppressRedundantIo = ( !(pszFilename == NULL || cImagesTo > 0)
8299 if ( pImageTo && pszFilename
8306 if (RT_FAILURE(rc) && pImageTo && pszFilename)
8325 if (pImageTo->pszFilename)
8326 RTStrFree(pImageTo->pszFilename);
8375 * @param pszFilename New name of the image (may be NULL if pDiskFrom == pDiskTo).
8391 const char *pszBackend, const char *pszFilename,
8398 return VDCopyEx(pDiskFrom, nImage, pDiskTo, pszBackend, pszFilename, fMoveByRename,
8887 RTStrFree(pImage->pszFilename);
8984 if (pCache->pszFilename)
8985 RTStrFree(pCache->pszFilename);
9082 if (pCache->pszFilename)
9083 RTStrFree(pCache->pszFilename);
9098 RTStrFree(pImage->pszFilename);
10161 * @returns VERR_BUFFER_OVERFLOW if pszFilename buffer too small to hold filename.
10164 * @param pszFilename Where to store the image file name.
10165 * @param cbFilename Size of buffer pszFilename points to.
10168 char *pszFilename, unsigned cbFilename)
10174 LogFlowFunc(("pDisk=%#p nImage=%u pszFilename=%#p cbFilename=%u\n",
10175 pDisk, nImage, pszFilename, cbFilename));
10183 AssertMsgBreakStmt(VALID_PTR(pszFilename) && *pszFilename,
10184 ("pszFilename=%#p \"%s\"\n", pszFilename, pszFilename),
10197 size_t cb = strlen(pImage->pszFilename);
10200 strcpy(pszFilename, pImage->pszFilename);
10205 strncpy(pszFilename, pImage->pszFilename, cbFilename - 1);
10206 pszFilename[cbFilename - 1] = '\0';
10217 LogFlowFunc(("returns %Rrc, pszFilename=\"%s\"\n", rc, pszFilename));
10659 pImage->pszFilename, pImage->Backend->pszBackendName);
10987 const char *pszFilename, const char *pszBackend,
10996 LogFlowFunc(("pszFilename=\"%s\"\n", pszFilename));
10998 AssertMsgReturn(VALID_PTR(pszFilename) && *pszFilename,
10999 ("pszFilename=%#p \"%s\"\n", pszFilename, pszFilename),
11042 rc = pBackend->pfnRepair(pszFilename, pVDIfsDisk, pVDIfsImage, fFlags);