Lines Matching refs:pszFsPath

75  * @param   pszFsPath       Path to check.
77 static bool rtFsIsRoot(const char *pszFsPath)
85 if (RTPATH_IS_SLASH(pszFsPath[0]))
87 if ( !RTPATH_IS_SLASH(pszFsPath[1])
88 || RTPATH_IS_SLASH(pszFsPath[2]))
92 const char *pszSlash = strpbrk(pszFsPath + 2, "\\/");
107 return pszFsPath[0] >= 'A' && pszFsPath[0] <= 'Z'
108 && pszFsPath[1] == ':'
109 && RTPATH_IS_SLASH(pszFsPath[2])
110 && !pszFsPath[3];
119 * @param pszFsPath Path within the filesystem. Verified as one byte or more.
122 static int rtFsGetRoot(const char *pszFsPath, PRTUTF16 *ppwszFsRoot)
127 if (rtFsIsRoot(pszFsPath))
128 return RTStrToUtf16(pszFsPath, ppwszFsRoot);
134 int rc = RTPathAbs(pszFsPath, szFullPath, sizeof(szFullPath));
183 RTR3DECL(int) RTFsQuerySizes(const char *pszFsPath, RTFOFF *pcbTotal, RTFOFF *pcbFree,
189 AssertMsgReturn(VALID_PTR(pszFsPath) && *pszFsPath, ("%p", pszFsPath), VERR_INVALID_PARAMETER);
191 int rc = rtFsGetRoot(pszFsPath, &pwszFsRoot);
214 pszFsPath, Err, rc));
239 pszFsPath, Err, rc));
252 * @param pszFsPath Path within the mounted filesystem.
255 RTR3DECL(int) RTFsQuerySerial(const char *pszFsPath, uint32_t *pu32Serial)
260 AssertMsgReturn(VALID_PTR(pszFsPath) && *pszFsPath, ("%p", pszFsPath), VERR_INVALID_PARAMETER);
263 int rc = rtFsGetRoot(pszFsPath, &pwszFsRoot);
280 pszFsPath, Err, rc));
292 * @param pszFsPath Path within the mounted filesystem.
295 RTR3DECL(int) RTFsQueryProperties(const char *pszFsPath, PRTFSPROPERTIES pProperties)
300 AssertMsgReturn(VALID_PTR(pszFsPath) && *pszFsPath, ("%p", pszFsPath), VERR_INVALID_PARAMETER);
303 int rc = rtFsGetRoot(pszFsPath, &pwszFsRoot);
332 pszFsPath, Err, rc));
364 RTR3DECL(int) RTFsQueryType(const char *pszFsPath, PRTFSTYPE penmType)
368 AssertPtrReturn(pszFsPath, VERR_INVALID_POINTER);
369 AssertReturn(*pszFsPath, VERR_INVALID_PARAMETER);
375 int rc = RTStrToUtf16(pszFsPath, &pwszFsPath);