Skip to content

Kernel - Added support for FileIdExtdBothDirectoryInformation - #835

Merged
Liryna merged 1 commit into
dokan-dev:masterfrom
xgcssch:master
Oct 13, 2019
Merged

Liryna merged 1 commit into
dokan-dev:masterfrom
xgcssch:master

Conversation

@xgcssch

@xgcssch xgcssch commented Oct 9, 2019

Copy link
Copy Markdown
Contributor

The support for FileIdExtdBothDirectoryInformation is required when the target is mapped as a volume into docker containers.

Checklist

  • [x ] My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • [ n/a] I have made corresponding changes to the existing documentation
  • [ x] My changes generate no new warnings
  • [ x] I have updated the change log (Add/Change/Fix)
  • [ n/a] I have cleaned up the commit history (use rebase and squash)

Changes proposed in this pull request:

Problem:
When a dokan mountpoint is used to map a volume into a Docker container, there is a problem changing to a subdirectory below the mountpoint.

Steps to reproduce

  1. A directory c:\mytarget with subdirectories A and B
  2. docker must be installed
  3. mirror.exe /r c:\mytarget /l c:\docker\volume /w /d /s
  4. docker run -ti -v c:\docker\volume:c:\targetinside mcr.microsoft.com/windows/servercore:1903
  5. Inside the container cd \targetinside
  6. cd B
  7. The new subdirectory is now A
    The debug output shows:
...
###GetFileInfo 0031
GetFileInfo : c:\mytarget\
        GetFileInformationByHandle success, file size = 0
FILE ATTRIBUTE  = 48
        result =  0
        FileInternalInformation
        DispatchQueryInformation result =  0
not suported type 63
not suported type 63
###FindFiles 0031
FindFiles : c:\mytarget\
        FindFiles return 2 entries in c:\mytarget\*

index from 0
FileMatch? : A (*,0,0)
  =>return single entry
index to 1
###GetFileInfo 0029
...

63 is FileIdExtdBothDirectoryInformation

This pull request adds support for this event.

The correct subdirectory can be selected after applying the fix.

…h is required when the target is mapped as a volume into docker containers.
@Liryna

Liryna commented Oct 13, 2019

Copy link
Copy Markdown
Member

Thank you @xgcssch for the PR and your contribution.
Well done looking into your issue and finding only this File Info was missing for docker to work 🏆

@Liryna
Liryna merged commit c6ff2a9 into dokan-dev:master Oct 13, 2019
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

Successfully merging this pull request may close these issues.

2 participants