Skip to content
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

FileSystem::isFileLocked is incomplete and does not detect locking in all cases #8761

Closed
TheOneRing opened this issue Jun 21, 2021 · 2 comments

Comments

@TheOneRing
Copy link
Member

While the above function returns false CfOpenFileWithOplock fails due to locking.
WindowsError: ffffffff80070020: The process cannot access the file because it is being used by another process."

@TheOneRing
Copy link
Member Author

The current implementation tries to gain shared access and returns true if it succeeds, for vfs windows we might need exclusive access however.

@TheOneRing
Copy link
Member Author

#8754

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant