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

Mounted network drive converting to Local drive when load is high #1252

Open
5 tasks done
dheeraj1729 opened this issue Nov 21, 2024 · 1 comment
Open
5 tasks done

Comments

@dheeraj1729
Copy link

dheeraj1729 commented Nov 21, 2024

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 Server 2022 Standard
  • Processor architecture: 64bit
  • Dokany version: Reproducible in latest version
  • Library type (Dokany/FUSE): Dokany

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

I have an application that uses Dokan to mount a store located on a SAN drive. Occasionally, the mounted drive intermittently switches to a local drive. Although the issue can be reproduced using the mirror.exe tool, it does not occur consistently.

Steps to reproduce:
1.Mount a network drive.
2.Continuously refresh the File Explorer. Occasionally, the mounted drive will switch to a local drive if the load on network drive is high. (Another way to reproduce is by disconnecting the network drive after mounting)

Logs

dokan_local.txt
dokan_local1.txt
dokan_local

@dheeraj1729 dheeraj1729 changed the title Mounted drive converting to Local drive Mounted network drive converting to Local drive when load is high Nov 21, 2024
@Liryna
Copy link
Member

Liryna commented Nov 22, 2024

Hi @dheeraj1729 ,

The drive cannot switch to local drive but I think what you see is that the request to get the volume information is slow and during that time the drive looks like that. I would suggest adding caching where possible to quickly complete the dokan requests.
Mirror does not have cache as it is a sample to learn how Dokan works.

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