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

File disappears from the Explorer window. #1111

Closed
4 of 5 tasks
onexzero opened this issue Sep 23, 2022 · 5 comments
Closed
4 of 5 tasks

File disappears from the Explorer window. #1111

onexzero opened this issue Sep 23, 2022 · 5 comments

Comments

@onexzero
Copy link

onexzero commented Sep 23, 2022

disappear.LOG
Feature request can skip this form. Bug report must complete it. Check List must be 100% match or it will be automatically closed without further discussion. Please remove this line.

Environment

  • Windows version: Windows 10
  • Processor architecture: AMD 5800X
  • Dokany version: 2.0.5.1000
  • Library type (Dokany/FUSE): both

Check List

  • I checked my issue doesn't exist yet
  • My issue is valid with mirror default sample and not specific to my user-mode driver implementation
  • I can always reproduce the issue with the provided description below.
  • 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

When the mount manager is activated, if the file cannot be put into the recycle bin, a deletion confirmation dialog is displayed. At this point, you haven't hit the delete button yet, but the file disappears from the explorer window. This phenomenon appears regardless of the dokany version. The same goes for Fuse. The actual file is not deleted and reappears when you refresh the explorer.

I ran mirror.exe as below.

mirror /o /r C:\Users\Raccoon\Desktop\Temp /l r:

A screen capture is attached.

strange_NbegEojM.mp4

Logs

Please attach in separate files: mirror output, library logs and kernel logs.
In case of BSOD, please attach minidump or dump analyze output.

@onexzero
Copy link
Author

disappear.LOG

@Liryna
Copy link
Member

Liryna commented Sep 26, 2022

Hi @onexzero ,

Thanks for the report.
What happens is that we get two FileDispositionInformation, one for deleting the file and the other one to undo the delete request right after.
The first one will notify the delete action to the system and make the file disappear here while the second one does not notify the file being back. Anyway, we just should notify on cleanup when the delete happens.

00001618	12:32:15 PM	[5680] ###SetFileInfo file handle = 0x00000212030EB170, eventID = 0136, FileInformationClass = 13, event Info = 0x0000021203036850	
00001619	12:32:15 PM	[5680] GetFileInfo : C:\Users\Raccoon\Desktop\Temp\android-x86-5.1-rc1.iso	
00001620	12:32:15 PM	[5680]  GetFileInformationByHandle success, file size = 375390208	
00001621	12:32:15 PM	[5680] FILE ATTRIBUTE  = 32	
00001622	12:32:15 PM	[5680] DeleteFile C:\Users\Raccoon\Desktop\Temp\android-x86-5.1-rc1.iso - 1	
00001623	12:32:15 PM	[5680]   dispositionInfo->DeleteFile = 1	
00001624	12:32:15 PM	[5680]  DispatchSetInformation result =  0	
00001625	12:32:15 PM	[5680] Dokan Information: SendAndPullEventInformation() with NTSTATUS 0x0, context 0x30eb170, and result object 0x0000021203111790 with size 48	
00001626	12:32:15 PM	[5680] ###SetFileInfo file handle = 0x00000212030EB170, eventID = 0136, FileInformationClass = 13, event Info = 0x0000021203036850	
00001627	12:32:15 PM	[5680] DeleteFile C:\Users\Raccoon\Desktop\Temp\android-x86-5.1-rc1.iso - 0	
00001628	12:32:15 PM	[5680]   dispositionInfo->DeleteFile = 0	
00001629	12:32:15 PM	[5680]  DispatchSetInformation result =  0	
00001630	12:32:15 PM	[5680] Dokan Information: SendAndPullEventInformation() with NTSTATUS 0x0, context 0x30eb170, and result object 0x0000021203111790 with size 48	
00001631	12:32:15 PM	[5680] ###Cleanup file handle = 0x00000212030EB170, eventID = 0136, event Info = 0x0000021203036850	
00001632	12:32:15 PM	[5680] Cleanup: C:\Users\Raccoon\Desktop\Temp\android-x86-5.1-rc1.iso	
00001633	12:32:15 PM	[5680] 	
00001634	12:32:15 PM	[5680] Dokan Information: SendAndPullEventInformation() with NTSTATUS 0x0, context 0x30eb170, and result object 0x0000021203111790 with size 48	
00001635	12:32:15 PM	[5680] ###Close file handle = 0x00000212030EB170, eventID = 0136, event Info = 0x0000021203036850	
00001636	12:32:15 PM	[5680] Close: C:\Users\Raccoon\Desktop\Temp\android-x86-5.1-rc1.iso	

@Liryna
Copy link
Member

Liryna commented Oct 2, 2022

Fixed with 8e2d78f. @onexzero could you try the new release 2.0.6 ?

@onexzero
Copy link
Author

onexzero commented Oct 4, 2022

Thank you @Liryna
I tested and it worked!!!

@Liryna
Copy link
Member

Liryna commented Oct 4, 2022

Thanks for the confirmation and the report 👍

@Liryna Liryna closed this as completed Oct 4, 2022
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

2 participants