5 ms·
The 9p filesystem lives on in a few "modern" places, like within WSL, QEMU, and other places where it's a good bridge between a host OS and container or VM.
by tyingq 4y ago
The 9p filesystem lives on in a few "modern" places, like within WSL, QEMU, and other places where it's a good bridge between a host OS and container or VM.
- michael-ax 4y agounless i have done it hopelessly wrong, you may be overstating it a little bit by calling it good. virtfs is the good one, not 9p.
- stonogo 4y agovirtfs USES 9p.
- spijdar 4y agoI think GP meant to say (the extremely confusingly named) virtio-fs, as opposed to virtfs/9pvirtio. Virtio-fs is independent of 9P and has optional support for using shared memory to greatly increase performance, it also maps better to the permissions and metadata of "modern" filesystems IIRC, not sure if 9pvirtio had this problem but I remember coworkers having permissions problems with the 9P bridge in WSL2 (Plan9's permission system is very simple and doesn't map well to other VFS's)
- MisterTea 4y ago> Plan9's permission system is very simple and doesn't map well to other VFS's Plan 9 is a pure VFS OS. 9p uses regular unix permissions which map just fine. The major issue is that since plan 9 is all vfs, there are no crufty unix leftovers like hidden dot files or hard/soft links. User specific configuration files belong in $user/lib and bind replaces hacky links. These old unix hacks were accommodated in 9p2000.u. Further extensions to .u resulted in 9p2000.L which adds some Linux metadata stuff (I cant remember right now, my memory of 9p2000.u/L is fading).
- anderspitman 4y agoUnfortunately it's not implemented for Windows hosts. There's a patch in the works but the review of the first submission came back with a lot of requested changes. They're planning another submission though so hopefully it makes it in.
- macshome 4y agoApple added support just in 2019! man mount_9p
- buildbot 4y agoHuh, could one use this instead of NFS then?
- butterisgood 4y agoIf you don't like performance very much - sure :-).
- octetta 4y agoAnyone have an example, say of how to use this command to mount the public plan9 repo?
- macshome 4y agoI've not messed with it, but will once I find some free time. There is an old KEXT on GitHub [0] that can mount them from the Finder, but KEXTs are on the way out... [0]: https://github.com/benavento/mac9p https://github.com/benavento/mac9p
- macshome 4y agoI'm fairly sure that it's used on Mac for the virtualization frameworks when working with guest VMs.
- codemac 4y agoChromeOS uses it as well to proxy files between containers.