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

VirtIOFS: RHBZ#2065481: open directory on Create #749

Merged

Conversation

viktor-prutyanov
Copy link
Collaborator

During WinAPI CreateDirectory handling WinFSP submits Create and then Close operations to the service.
So, Create handler must open the directory to avoid Close of invalid file handle.

@viktor-prutyanov viktor-prutyanov changed the title RHBZ#2065481: open directory on Create VirtIOFS: RHBZ#2065481: open directory on Create Mar 19, 2022
@viktor-prutyanov viktor-prutyanov marked this pull request as draft March 19, 2022 13:00
@viktor-prutyanov viktor-prutyanov marked this pull request as ready for review March 19, 2022 13:02
During WinAPI CreateDirectory handling WinFSP submits 'Create' and then
'Close' operations to the service. So, 'Create' handler must open the
directory to avoid 'Close' of invalid file handle.

Signed-off-by: Viktor Prutyanov <viktor@daynix.com>
@YanVugenfirer YanVugenfirer merged commit 8d3493f into virtio-win:master Mar 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants