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

memfs produces different errors for invalid paths than NTFS #504

Open
carlreinke opened this issue Apr 9, 2023 · 0 comments
Open

memfs produces different errors for invalid paths than NTFS #504

carlreinke opened this issue Apr 9, 2023 · 0 comments

Comments

@carlreinke
Copy link

carlreinke commented Apr 9, 2023

Bug Report

When attempting to read/write a file with a path that has a file along the path, memfs produces different errors than NTFS.

How to Reproduce

  1. Mount memfs: "C:\Program Files (x86)\WinFsp\SxS\sxs.20230328T002019Z\bin\memfs-x64.exe" -i -F NTFS -n 65536 -s 67108864 -m M:
  2. Run commands below.

Behaviors

NTFS behavior:

D:\> echo foo > C:\temp\foo

D:\> echo foo > C:\temp\foo\bar
The system cannot find the path specified.

D:\> echo foo > C:\temp\foo\bar\baz
The system cannot find the path specified.

D:\> type C:\temp\foo\bar
The directory name is invalid.

D:\> type C:\temp\foo\bar\baz
The system cannot find the path specified.

memfs behavior:

D:\> echo foo > M:\foo

D:\> echo foo > M:\foo\bar
The directory name is invalid.

D:\> echo foo > M:\foo\bar\baz
The system cannot find the path specified.

D:\> type M:\foo\bar
The filename, directory name, or volume label syntax is incorrect.

D:\> type M:\foo\bar\baz
The directory name is invalid.

Environment

  • OS version and build: Windows 10 Pro for Workstations 22H2; build 19045.2728; version 10.0.19045.2728
  • WinFsp version and build: 2023; version 2.0.23075
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant