The sound distributed version control system

#313 Cross-filesystem errors on WSL2

Closed on August 4, 2021
ambersz on February 11, 2021

I brought this up on Zulip previously, did some more testing so I’m putting everything together here

  • Environment Information:

OS Name Microsoft Windows 10 Home Version 10.0.19041 Build 19041

  NAME      STATE           VERSION
* Ubuntu    Running         2

Pijul Installation:

cargo install pijul --version "~1.0.0-alpha" --features git
  • The errors:
/mnt/c/Users/user/gitrepo$ pijul git
Error: No such file or directory (os error 2)

(I removed the .pijul directory between these commands)

/mnt/c/Users/user/gitrepo$ pijul init
Error: No such file or directory (os error 2)
$ pijul ls
Error: No such file or directory (os error 2)
$ pijul log
Error: No such file or directory (os error 2)
  • If the repo directory isn’t under the Windows filesystem I don’t get the error.
~/git/test$ pijul git

I’m hoping here that no response means the import succeeded, would be nice to have some kind of message so I’m not guessing though.

pmeunier on August 4, 2021

Hi! Thanks for this report and sorry for the long delay. I don’t know if this is still a bug, but here are two answers I can give you:

  • WSL doesn’t implement mmap correctly for files under the Windows filesystem, and this can cause many different issues, such as the one you’re seeing. I don’t know whether the situation has improved or not, but there isn’t much we can do, since the entire performance claims of Pijul are based on mmap.

  • Your other question is with the feedback for the import command. I just pushed #YVA72CP2DB5XDKML3HR6NLB2GNPN5PXCGZD6DVXZGLAUEB3W4TGAC to fix this.

I’ll close this discussion for now, feel free to keep commenting if you have other issues related to this, or to reopen if you believe this is still an issue.

pmeunier closed this discussion on August 4, 2021