Commits


add a todo file


typo spotted by cage, thanks!


initialize evbuffer only for dirs


first half of the tread implementation done, no new tests yet


allow opening directories (for reading only)


make the compiler happy


add two open-related tests


fix walk fid check: look at fd not iomode to see if it was opened


ensure we don't call openat(2) with "" as path


fix Tattach handling The previous implementation assumed that you can't attach more than once. This is clearly wrong, Tattach and Twalk are the two ways to obtain new fids. This drops the error on subsequential attach and making the test "multiple attach" passes.


add a test that calls attach multiple times


support running only a subset of the tests using a matching pattern


add documentation for the mentioned messages types


cosmetic change: "X/Y passed" instead of "passed X/Y"


don't let nwqid become negative at the start of the loop nwqid is 0, so if the first component can't be opened nwqid becomes -1 and since it's not 0, we end up calling np_walk with -1 as length. This in turns converts it back to uint16_t and we generate an invalid packet. The solution is to not decrement nwqid at all, it fixes all the current tests case and is the correct behaviour that the rest of the code expects.