3 ms·
> If so, what is the plan9 on-disk format? Which one? For most user storage, there's kenfs, fossil, venti, hjfs, cwfs, and a few others. But 9p is disjoint fro
by ori_b 9y ago
> If so, what is the plan9 on-disk format?
Which one? For most user storage, there's kenfs, fossil, venti, hjfs, cwfs, and a few others. But 9p is disjoint from where data is stored, it's just a protocol for doing RPCs on endpoints in a heirarchical namespace.
As a result, everything is served up over 9p on plan 9. iso9660, the device tree, the network subsystem, ftpfs, sshfs, hgwebfs, the vt100 emulator, the keyboard, the mouse, the CD burner commands, and so on. To a good approximation, the only things you can do without going over 9p is starting processes.
This has interesting implications; For example, the Plan 9 equivalent of ssh simply opens a connection to the remote system, and mounts the local /dev before the remote one. That means that remote programs simply open the local devices, such as the mouse and keyboard, and use them in preference to the devices that are connected to the remote machine.
The equivalent to VNC on Plan 9 is simply namespace management to redirect which devices programs use. Here's the full implementation:
http://code.9front.org/hg/plan9front/file/fd023f8fd074/rc/bin/rcpu http://code.9front.org/hg/plan9front/file/fd023f8fd074/rc/bi...
Yes, it is just a shell script.