shithub: svcfs

ref: 55c1a11efd4ea92a6a8eaf89a685a90951a2fbf2
dir: /README/

View raw version
svc/fs

This mounts a directory at (default) `/mnt/svc`
 - -m <mntpnt> 
 - -s <srvname> will post to /srv/srvname

`/mnt/svc` initially has a file, `clone`.
Opening `clone` will create a numerical directory starting at `/mnt/svc/0`.
The first write must be the name of the service. This will post a file to /srv/<service> that clients can mount into there namespace for a session with a given service

Ctl messages on /mnt/svc/n/ctl
(Note, newlines are important!)
- `create <buffername>`: This will create a buffer. This must be called before any of the following
- `title <buffername>\ntitle text`: This will set the title of a given buffer
- `feed <buffername>\nsome text`: This will be appended to a given buffers' feed file

Working with services:
`mount /srv/<svc> /mnt/<svc>`
eg, mount /srv/oftc /mnt/oftc

/mnt/oftc/aside	- sidebar content, e.g. nicklist
/mnt/oftc/ctl	- control file
/mnt/oftc/feed	- current buffer's feed
/mnt/oftc/input	- write to current buffer
/mnt/oftc/notify 	- any pending notifications
/mnt/oftc/status	- any status (service specific)
/mnt/oftc/tabs	- list of all service buffers for client
/mnt/oftc/title	- title for current buffer

Ctl messages on /mnt/<svc>/ctl
- `buffer <buffname>`: Change the current buffer content displayed 

`echo 'buffer #cat-v' >> /mnt/oftc/ctl`