3 be123ad0 2021-08-02 op const notag = -1:u16
4 be123ad0 2021-08-02 op const msize = 4194304:u32 # 4*1024*1024
5 be123ad0 2021-08-02 op const np2000 = "9P2000"
11 f0544688 2021-08-02 op proc version(msize, version) {
12 f0544688 2021-08-02 op send(Tversion, notag, msize:u32, version:str)
15 f0544688 2021-08-02 op proc attach(fid, afid, uname, aname) {
16 f0544688 2021-08-02 op send(Tversion, iota, fid:u32, afid:u32, uname:str, aname:str)
19 f0544688 2021-08-02 op proc walk(fid, newfid, ...) {
20 f0544688 2021-08-02 op send(Twalk, iota, fid:u32, newfid:u32, ...:str)
25 be123ad0 2021-08-02 op # useful functions
27 f0544688 2021-08-02 op proc mount(fid, path) {
28 f0544688 2021-08-02 op version(msize, np2000)
32 f0544688 2021-08-02 op m.type == Tversion,
33 f0544688 2021-08-02 op m.tag == notag,
34 f0544688 2021-08-02 op m.msize == msize,
35 f0544688 2021-08-02 op m.version == version,
38 f0544688 2021-08-02 op attach(fid, nofid, testuser, path)
42 f0544688 2021-08-02 op m.type == Rattach
43 f0544688 2021-08-02 op m.qid.type == QTDIR
47 f0544688 2021-08-02 op proc should-fail() {
49 f0544688 2021-08-02 op assert m.type == Rerror
50 f0544688 2021-08-02 op debug("got expected error %s", m)