dokany
dokany copied to clipboard
Mirror : File corruption when copying from mounted drive
Hello
I noticed a problem when using mirror.exe to mount and copy files.
Environment
- Windows version: 11
- Processor architecture: AMD
- Dokany version: 2.2.0.1000 (and previous)
- Library type (Dokany/FUSE): Dokany
Check List
- [x] I checked my issue doesn't exist yet
- [x] My issue is valid with mirror default sample and not specific to my user-mode driver implementation
- [x] I can always reproduce the issue with the provided description below.
- [x] I have updated Dokany to the latest version and have reboot my computer after.
- [ ] I tested one of the last snapshot from appveyor CI
Description
I use mirror.exe to mount a SMB share to a drive of my PC. For some files, but not all, the data is corrupted when I copy the file from the mounted drive. The file length is OK and there is no error popup, but the content is partially messed up and replaced with nulls. The actual content varies from one copy to another for the same file. I noticed that for PDF files and for images files, because the viewer complains that the file is corrupt.
If I open the file directly from the mounted drive, there is no error, the content is correct. The corruption occurs only if I copy the file using Windows explorer or CMD copy.
If I copy the file using the UNC path of the shared folder, there is no error.
If I copy the file with Cygwin cp from the mounted drive, there is no error.
I noticed this problem while I was using an older version of Dokan so I upgraded to the latest version but it did not solve it.
Command to mount the disk : "c:\Program Files\Dokan\mirror.exe" /r \QNAP2\Public\Dokan /l Q:\ /s (as administrator).
Attached:
- mirror log
- dbgview log
- original file
- copied file (corrupt)
Logs
mirror.log DbgView.log 30141_50_2.pdf Copied.pdf
Thank you.