mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 02:49:02 -04:00
Clearify some comments for Windows filesystem
This commit is contained in:
parent
894cd5ee70
commit
162d049bb9
2 changed files with 7 additions and 1 deletions
|
|
@ -770,6 +770,11 @@ int lstat_sync(const char* file, struct windows_stat* st, uint64_t* physical)
|
|||
*
|
||||
* Use FILE_FLAG_BACKUP_SEMANTICS to open directories (it's just ignored for files).
|
||||
* Use FILE_FLAG_OPEN_REPARSE_POINT to open symbolic links and not the their target.
|
||||
*
|
||||
* Note that even with FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
|
||||
* and FILE_FLAG_BACKUP_SEMANTICS | FILE_FLAG_OPEN_REPARSE_POINT some paths
|
||||
* cannot be opened like "C:\System Volume Information" resulting
|
||||
* in error ERROR_ACCESS_DENIED.
|
||||
*/
|
||||
h = CreateFileW(convert(file), 0, FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, 0, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS | FILE_FLAG_OPEN_REPARSE_POINT, 0);
|
||||
if (h == INVALID_HANDLE_VALUE) {
|
||||
|
|
|
|||
|
|
@ -193,7 +193,8 @@ int windows_rmdir(const char* file);
|
|||
*
|
||||
* It doesn't work for all kinds of files and directories.
|
||||
* You must call it only for regular files.
|
||||
* For example, "\System Volume Information" cannot be accessed.
|
||||
* For example, "C:\System Volume Information" cannot be accessed
|
||||
* with error ERROR_ACCESS_DENIED.
|
||||
*
|
||||
* Note that instead lstat() works for all the files.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue