Commits


implement virtual and userdata tables for users handling The idea is to abstract over the users that kamid manages. The virtual table allows to use a custom userbase instead of the local UNIX users. The userdata tables maps (virtual) users to their home directory, which is the only directory tree exported by kamid as of now. Together, they allow a powerful and flexible management of the users and their data. The idea is somewhat stolen from smtpd(8).


don't account for size[2] itself in the struct stat


implement Tread against directories To do so it was needed to modify the np_* functions so they take an explicit evbuffer.


add readdir numbers for future reference


Topen implemented Implement Topen plus some basic testing. ORCLOSE (remove file when the fid is clunked) is mapped to O_CLOEXEC and tried to be honoured on fid_free. "vanilla" 9P2000 uses reads on directories to list the entries while 9P2000.L (and .U too possibly) introduces an explicit Treaddir. I'm planning to support 9P2000-style read-on-dir but not yet.


move imsg_{event_add,compose_event} to utils


add a first draft of Twalk


define QIDSIZE, it's handy


add constants for Qid type


initial Tversion handling


bump MSIZE9P (max message size)


define a handy HEADERSIZE sizeof(struct np_msg_header) includes unwanted padding...


add more useful constants


fix bufferevent tls I/O on libevent2 port of telescope commit 1470eab31452d2fab50bc4965320dab7892b2ef3 original commit message: > on libevent2 we need to wrap evbuffer_add with > evbuffer_freeze/evbuffer_unfreeze. Not sure exactly why, probably > because we're doing some evbuffer_enable/disable/enable-again.


s/SIMPLEQ_/STAILQ_/g STAILQ_* macros seems to be more widespread than SIMPLEQ_*