New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File system does not work after system reboot #177
Comments
Thanks for the bug report. A couple of additional questions:
|
I'll ask for more detail on monday |
Thanks. We will definitely need more information to resolve this.
I would love to get access to the machine that exhibits this problem, but I understand that it not under your control. |
I've sent you an email |
@billziss-gh CreateFile returns INVALID_HANDLE_VALUE, error code ERROR_INVALID_FUNCTION, NtCreateFile returns STATUS_INVALID_DEVICE_REQUEST. I can see Winfsp volume in the WinObj.exe, but can't see it in the FileSpy.exe.
The operation completes successfully, the return value is nonzero. |
@thinkport thanks for the diag report. I will study it and see if I can find something. This problem has eluded me for a very long time. I have never been able to reproduce it. Any chance we can arrange for a remote desktop session or something like that so I can poke inside this computer? If you find this possible feel free to ping me at my personal email address. BTW, I am in the Pacific time zone (Seattle, WA). |
One thing that I have noticed is that the few reports that I have always seem to come from localized versions of Windows (i.e. non-US). Perhaps this has something to do with where the problem is. |
@thinkport sorry for the multiple posts, but here is a list of questions and things for you to try when this fails again:
I may add to this list in the future. |
@billziss-gh Unfortunately, they can't connect to the internet, I am not beside the computer now, I will answer all the questions on monday. Does Win7 have Fast Startup? Fast Startup is a feature available from Windows 8. Quick Boot is a feature present in BIOS. Quick Boot? |
I think you are right about Fast Startup and Win7 not having it. I only mentioned it because it has been reported to me as potentially connected to this. I will wait for your answers on Monday. Perhaps we can attempt to debug this via our discussion over GitHub issues. |
@billziss-gh By the way, DocPrismService is my miniFiter Driver, it redirects some files to WinFSP driver. |
I found something interesting, when WinFsp FSD doesn't work, I can't see WinFsp volume in the FileSpy, I use FileSpy feature ‘attach to a device by name', input the WinFsp volume name '\Device\Volume{GUID}', WinFsp FSD works immediately. |
I found the reason, the WinFsp virtual disk doesn't handle any IRP request from other file system driver, like FastFat. FastFat code(from WinDDK File:fsctrl.c Function:FatMountVolume):
I/O manager sends IRP_MN_MOUNT_VOLUME to FastFat file system, FastFat send IOCTL_DISK_CHECK_VERIFY to WinFsp virtual disk, WinFsp virtual disk returns STATUS_INVALID_DEVICE_REQUEST, FastFat returns STATUS_INVALID_DEVICE_REQUEST too, I/O manager doesn't attempt to ask other file system any more. If the file system doesn't recognize disk device, the file system need returns STATUS_UNRECOGNIZED_VOLUME, I/O manager will attempt to ask other file system, like WinFsp.MSDN WinFsp virtual disk can return STATUS_UNRECOGNIZED_VOLUME, I/O manager can work well in this case, but we can not ensure that other file systems can work properly. If WinFsp virtual disk returns STATUS_SUCCESS, WinFsp virtual disk need handles other IRP from other file system, like IOCTL_DISK_GET_PARTITION_INFO_EX, IOCTL_DISK_GET_DRIVE_GEOMETRY, etc. Dokany handles very well. dokany |
@thinkport your work is fantastic, thank you. I will have to study it and see how we can fix this problem. |
BTW, any chance that you have steps to help me reproduce? It would be tremendous if I was able to study the problem on my equipment to determine the best course of action. |
Change code
You can always reproduce now. |
WinFsp works because the control device object is inserted at the head of the queue, but this is not always the case. |
@thinkport your investigation has been invaluable. Thank you! |
I'm glad to be able to help. |
@thinkport I have tested this behavior using I would like to add credit to you in the project source and changelog for your significant contribution. I can use @thinkport, but I can also use your real name if you prefer. Let me know. |
This fixes GitHub issue #177. All credit for the investigation and suggested workaround goes to @thinkport.
This change is now in both the |
The latest release includes the fix for this issue: |
This fixes GitHub issue winfsp#177. All credit for the investigation and suggested workaround goes to @thinkport.
From https://groups.google.com/forum/#!topic/winfsp/QgeBoADoJCI
Bug Report
After PC reboot, the drive is mounted but not accessible.
Message is : X:\ is not accessible. Incorrect function (translated from French, I do not know if it's the "official" english error message).
To solve the issue, I have to uninstall and reinstall winFSP.
How to Reproduce
Only happens on some PCs I do not own. I cannot reproduce.
Environment
Attached is WinFSP diag file.
diagResult.txt
The text was updated successfully, but these errors were encountered: