microsoft / microsoft/WSL

drvfs network mount not accessible after sleep

Open
#2,165 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

Windows version:

Microsoft Windows [Version 10.0.16199.1000]

  • What you're doing and what's happening: (Copy&paste specific commands and their output, or include screen shots)

07:27 /mnt$ sudo mount -t drvfs '\server\sharename' /mnt/z
07:27 /mnt$ cd z
l07:27 /mnt/z$ ls
randfile @Recycle
07:27 /mnt/z$ ls -la
total 134217729
drwxrwxrwx 0 root root 512 May 7 07:26 .
drwxr-xr-x 0 root root 512 Apr 20 15:51 ..
-rwxrwxrwx 1 root root 104857600 Jun 5 2014 randfile
drwxrwxrwx 0 root root 512 Dec 27 2013 @Recycle

put machine to sleep
wake up machine

07:27 /mnt/z$ ls
ls: cannot open directory '.': Invalid argument

  • What's wrong / what should be happening instead:
    Mounted network drive should continue to be mounted in WSL and not return an error when attempting to access it after awaking from sleep.

  • Strace of the failing command, if applicable: (If <cmd> is failing, then run strace -o strace.txt -ff <cmd>, and post the strace.txt output here)

Not applicable.

See our contributing instructions for assistance.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported drvfs network-share mount with the shown mount command, then sleep and wake the Windows machine before running ls again. Start by tracing how the mounted share is handled across suspend and resume. Done means the mounted network drive remains accessible in WSL after wake without the Invalid argument error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
networking, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.