Lines Matching refs:sb

263     const struct descbits *db, struct sbuf *sb)  in l9p_describe_bits()  argument
270 sbuf_printf(sb, "%s0x%" PRIx64, str, value); in l9p_describe_bits()
277 sbuf_printf(sb, "%s%s", sep, db->db_name); in l9p_describe_bits()
293 sbuf_printf(sb, "%s?0x%" PRIx64, sep, value); in l9p_describe_bits()
298 sbuf_cat(sb, bracketbuf); in l9p_describe_bits()
307 l9p_describe_fid(const char *str, uint32_t fid, struct sbuf *sb) in l9p_describe_fid() argument
310 sbuf_printf(sb, "%s%" PRIu32, str, fid); in l9p_describe_fid()
317 l9p_describe_ugid(const char *str, uint32_t ugid, struct sbuf *sb) in l9p_describe_ugid() argument
320 sbuf_printf(sb, "%s%" PRIu32, str, ugid); in l9p_describe_ugid()
329 l9p_describe_mode(const char *str, uint32_t mode, struct sbuf *sb) in l9p_describe_mode() argument
344 (void) l9p_describe_bits(str, mode, "[]", bits, sb); in l9p_describe_mode()
351 l9p_describe_lflags(const char *str, uint32_t flags, struct sbuf *sb) in l9p_describe_lflags() argument
380 (void) l9p_describe_bits(str, flags, "[]", bits, sb); in l9p_describe_lflags()
389 l9p_describe_name(const char *str, char *name, struct sbuf *sb) in l9p_describe_name() argument
394 sbuf_printf(sb, "%s<null>", str); in l9p_describe_name()
401 sbuf_printf(sb, "%s\"%.*s...\"", str, 32 - 3, name); in l9p_describe_name()
403 sbuf_printf(sb, "%s\"%.*s\"", str, (int)len, name); in l9p_describe_name()
411 l9p_describe_perm(const char *str, uint32_t mode, struct sbuf *sb) in l9p_describe_perm() argument
417 sbuf_printf(sb, "%s0x%" PRIx32 "<%.9s>", str, mode, pbuf + 1); in l9p_describe_perm()
419 sbuf_printf(sb, "%s<%.9s>", str, pbuf + 1); in l9p_describe_perm()
427 l9p_describe_ext_perm(const char *str, uint32_t mode, struct sbuf *sb) in l9p_describe_ext_perm() argument
446 sbuf_printf(sb, "%s[", str); in l9p_describe_ext_perm()
448 bits, sb); in l9p_describe_ext_perm()
449 l9p_describe_perm(need_sep ? "," : "", mode & 0777, sb); in l9p_describe_ext_perm()
450 sbuf_cat(sb, "]"); in l9p_describe_ext_perm()
458 l9p_describe_lperm(const char *str, uint32_t mode, struct sbuf *sb) in l9p_describe_lperm() argument
472 sbuf_printf(sb, "%s[", str); in l9p_describe_lperm()
474 bits, sb); in l9p_describe_lperm()
475 l9p_describe_perm(need_sep ? "," : "", mode & 0777, sb); in l9p_describe_lperm()
476 sbuf_cat(sb, "]"); in l9p_describe_lperm()
483 l9p_describe_qid(const char *str, struct l9p_qid *qid, struct sbuf *sb) in l9p_describe_qid() argument
507 sbuf_cat(sb, str); in l9p_describe_qid()
508 (void) l9p_describe_bits("<", qid->type, "[]", bits, sb); in l9p_describe_qid()
509 sbuf_printf(sb, ",%" PRIu32 ",0x%016" PRIx64 ">", in l9p_describe_qid()
517 l9p_describe_size(const char *str, uint64_t size, struct sbuf *sb) in l9p_describe_size() argument
520 sbuf_printf(sb, "%s%" PRIu64, str, size); in l9p_describe_size()
528 enum l9p_version version, struct sbuf *sb) in l9p_describe_l9stat() argument
534 sbuf_printf(sb, "%stype=0x%04" PRIx32 " dev=0x%08" PRIx32, str, in l9p_describe_l9stat()
536 l9p_describe_qid(" qid=", &st->qid, sb); in l9p_describe_l9stat()
537 l9p_describe_ext_perm(" mode=", st->mode, sb); in l9p_describe_l9stat()
539 sbuf_printf(sb, " atime=%" PRIu32, st->atime); in l9p_describe_l9stat()
541 sbuf_printf(sb, " mtime=%" PRIu32, st->mtime); in l9p_describe_l9stat()
543 sbuf_printf(sb, " length=%" PRIu64, st->length); in l9p_describe_l9stat()
544 l9p_describe_name(" name=", st->name, sb); in l9p_describe_l9stat()
551 l9p_describe_name(" uid=", st->uid, sb); in l9p_describe_l9stat()
553 l9p_describe_name(" gid=", st->gid, sb); in l9p_describe_l9stat()
555 l9p_describe_name(" muid=", st->muid, sb); in l9p_describe_l9stat()
558 l9p_describe_name(" extension=", st->extension, sb); in l9p_describe_l9stat()
559 sbuf_printf(sb, in l9p_describe_l9stat()
566 l9p_describe_statfs(const char *str, struct l9p_statfs *st, struct sbuf *sb) in l9p_describe_statfs() argument
571 sbuf_printf(sb, "%stype=0x%04lx bsize=%lu blocks=%" PRIu64 in l9p_describe_statfs()
585 l9p_describe_time(struct sbuf *sb, const char *s, uint64_t sec, uint64_t nsec) in l9p_describe_time() argument
588 sbuf_cat(sb, s); in l9p_describe_time()
590 sbuf_printf(sb, "%" PRIu64 ".<invalid nsec %" PRIu64 ">)", in l9p_describe_time()
593 sbuf_printf(sb, "%" PRIu64 ".%09" PRIu64, sec, nsec); in l9p_describe_time()
600 l9p_describe_readdir(struct sbuf *sb, struct l9p_f_io *io) in l9p_describe_readdir() argument
610 sbuf_printf(sb, " EOF (count=0)"); in l9p_describe_readdir()
619 sbuf_printf(sb, " count=%" PRIu32 " [", count); in l9p_describe_readdir()
624 sbuf_printf(sb, " bad count"); in l9p_describe_readdir()
628 sbuf_printf(sb, i ? ", " : " "); in l9p_describe_readdir()
629 l9p_describe_qid(" qid=", &de.qid, sb); in l9p_describe_readdir()
630 sbuf_printf(sb, " offset=%" PRIu64 " type=%d", in l9p_describe_readdir()
635 sbuf_printf(sb, "]=%d dir entries", i); in l9p_describe_readdir()
637 sbuf_printf(sb, " count=%" PRIu32, count); in l9p_describe_readdir()
645 l9p_describe_getattr_mask(uint64_t request_mask, struct sbuf *sb) in l9p_describe_getattr_mask() argument
687 sb); in l9p_describe_getattr_mask()
694 l9p_describe_unlinkat_flags(const char *str, uint32_t flags, struct sbuf *sb) in l9p_describe_unlinkat_flags() argument
701 (void) l9p_describe_bits(str, flags, "[]", bits, sb); in l9p_describe_unlinkat_flags()
830 struct sbuf *sb) in l9p_describe_fcall() argument
837 assert(sb != NULL); in l9p_describe_fcall()
853 sbuf_printf(sb, "<unknown %s %d> tag=%d", rr, type, in l9p_describe_fcall()
856 sbuf_printf(sb, "%s tag=%d", ftype_names[type - L9P__FIRST], in l9p_describe_fcall()
863 sbuf_printf(sb, " version=\"%s\" msize=%d", fcall->version.version, in l9p_describe_fcall()
868 l9p_describe_fid(" afid=", fcall->hdr.fid, sb); in l9p_describe_fcall()
869 sbuf_printf(sb, " uname=\"%s\" aname=\"%s\"", in l9p_describe_fcall()
874 l9p_describe_fid(" fid=", fcall->hdr.fid, sb); in l9p_describe_fcall()
875 l9p_describe_fid(" afid=", fcall->tattach.afid, sb); in l9p_describe_fcall()
876 sbuf_printf(sb, " uname=\"%s\" aname=\"%s\"", in l9p_describe_fcall()
879 sbuf_printf(sb, " n_uname=%d", fcall->tattach.n_uname); in l9p_describe_fcall()
883 l9p_describe_qid(" ", &fcall->rattach.qid, sb); in l9p_describe_fcall()
887 sbuf_printf(sb, " ename=\"%s\" errnum=%d", fcall->error.ename, in l9p_describe_fcall()
892 sbuf_printf(sb, " errnum=%d (%s)", fcall->error.errnum, in l9p_describe_fcall()
897 sbuf_printf(sb, " oldtag=%d", fcall->tflush.oldtag); in l9p_describe_fcall()
904 l9p_describe_fid(" fid=", fcall->hdr.fid, sb); in l9p_describe_fcall()
905 l9p_describe_fid(" newfid=", fcall->twalk.newfid, sb); in l9p_describe_fcall()
907 sbuf_cat(sb, " wname=\""); in l9p_describe_fcall()
909 sbuf_printf(sb, "%s%s", i == 0 ? "" : "/", in l9p_describe_fcall()
911 sbuf_cat(sb, "\""); in l9p_describe_fcall()
916 sbuf_printf(sb, " wqid=["); in l9p_describe_fcall()
919 &fcall->rwalk.wqid[i], sb); in l9p_describe_fcall()
920 sbuf_cat(sb, "]"); in l9p_describe_fcall()
924 l9p_describe_fid(" fid=", fcall->hdr.fid, sb); in l9p_describe_fcall()
925 l9p_describe_mode(" mode=", fcall->tcreate.mode, sb); in l9p_describe_fcall()
929 l9p_describe_qid(" qid=", &fcall->ropen.qid, sb); in l9p_describe_fcall()
930 sbuf_printf(sb, " iounit=%d", fcall->ropen.iounit); in l9p_describe_fcall()
934 l9p_describe_fid(" fid=", fcall->hdr.fid, sb); in l9p_describe_fcall()
935 l9p_describe_name(" name=", fcall->tcreate.name, sb); in l9p_describe_fcall()
936 l9p_describe_ext_perm(" perm=", fcall->tcreate.perm, sb); in l9p_describe_fcall()
937 l9p_describe_mode(" mode=", fcall->tcreate.mode, sb); in l9p_describe_fcall()
940 fcall->tcreate.extension, sb); in l9p_describe_fcall()
944 l9p_describe_qid(" qid=", &fcall->rcreate.qid, sb); in l9p_describe_fcall()
945 sbuf_printf(sb, " iounit=%d", fcall->rcreate.iounit); in l9p_describe_fcall()
949 l9p_describe_fid(" fid=", fcall->hdr.fid, sb); in l9p_describe_fcall()
950 sbuf_printf(sb, " offset=%" PRIu64 " count=%" PRIu32, in l9p_describe_fcall()
956 sbuf_printf(sb, " count=%" PRIu32, fcall->io.count); in l9p_describe_fcall()
961 l9p_describe_fid(" fid=", fcall->hdr.fid, sb); in l9p_describe_fcall()
962 sbuf_printf(sb, " offset=%" PRIu64 " count=%" PRIu32, in l9p_describe_fcall()
967 l9p_describe_fid(" fid=", fcall->hdr.fid, sb); in l9p_describe_fcall()
974 l9p_describe_fid(" fid=", fcall->hdr.fid, sb); in l9p_describe_fcall()
981 l9p_describe_fid(" fid=", fcall->hdr.fid, sb); in l9p_describe_fcall()
985 l9p_describe_l9stat(" ", &fcall->rstat.stat, version, sb); in l9p_describe_fcall()
989 l9p_describe_fid(" fid=", fcall->hdr.fid, sb); in l9p_describe_fcall()
990 l9p_describe_l9stat(" ", &fcall->twstat.stat, version, sb); in l9p_describe_fcall()
997 l9p_describe_fid(" fid=", fcall->hdr.fid, sb); in l9p_describe_fcall()
1001 l9p_describe_statfs(" ", &fcall->rstatfs.statfs, sb); in l9p_describe_fcall()
1005 l9p_describe_fid(" fid=", fcall->hdr.fid, sb); in l9p_describe_fcall()
1006 l9p_describe_lflags(" flags=", fcall->tlcreate.flags, sb); in l9p_describe_fcall()
1010 l9p_describe_qid(" qid=", &fcall->rlopen.qid, sb); in l9p_describe_fcall()
1011 sbuf_printf(sb, " iounit=%d", fcall->rlopen.iounit); in l9p_describe_fcall()
1015 l9p_describe_fid(" fid=", fcall->hdr.fid, sb); in l9p_describe_fcall()
1016 l9p_describe_name(" name=", fcall->tlcreate.name, sb); in l9p_describe_fcall()
1018 l9p_describe_lflags(" flags=", fcall->tlcreate.flags, sb); in l9p_describe_fcall()
1020 l9p_describe_lperm(" mode=", fcall->tlcreate.mode, sb); in l9p_describe_fcall()
1021 l9p_describe_ugid(" gid=", fcall->tlcreate.gid, sb); in l9p_describe_fcall()
1025 l9p_describe_qid(" qid=", &fcall->rlcreate.qid, sb); in l9p_describe_fcall()
1026 sbuf_printf(sb, " iounit=%d", fcall->rlcreate.iounit); in l9p_describe_fcall()
1030 l9p_describe_fid(" fid=", fcall->hdr.fid, sb); in l9p_describe_fcall()
1031 l9p_describe_name(" name=", fcall->tsymlink.name, sb); in l9p_describe_fcall()
1032 l9p_describe_name(" symtgt=", fcall->tsymlink.symtgt, sb); in l9p_describe_fcall()
1033 l9p_describe_ugid(" gid=", fcall->tsymlink.gid, sb); in l9p_describe_fcall()
1037 l9p_describe_qid(" qid=", &fcall->ropen.qid, sb); in l9p_describe_fcall()
1041 l9p_describe_fid(" dfid=", fcall->hdr.fid, sb); in l9p_describe_fcall()
1042 l9p_describe_name(" name=", fcall->tmknod.name, sb); in l9p_describe_fcall()
1048 l9p_describe_lperm(" mode=", fcall->tmknod.mode, sb); in l9p_describe_fcall()
1049 sbuf_printf(sb, " major=%u minor=%u", in l9p_describe_fcall()
1051 l9p_describe_ugid(" gid=", fcall->tmknod.gid, sb); in l9p_describe_fcall()
1055 l9p_describe_qid(" qid=", &fcall->rmknod.qid, sb); in l9p_describe_fcall()
1059 l9p_describe_fid(" fid=", fcall->hdr.fid, sb); in l9p_describe_fcall()
1060 l9p_describe_fid(" dfid=", fcall->trename.dfid, sb); in l9p_describe_fcall()
1061 l9p_describe_name(" name=", fcall->trename.name, sb); in l9p_describe_fcall()
1068 l9p_describe_fid(" fid=", fcall->hdr.fid, sb); in l9p_describe_fcall()
1072 l9p_describe_name(" target=", fcall->rreadlink.target, sb); in l9p_describe_fcall()
1076 l9p_describe_fid(" fid=", fcall->hdr.fid, sb); in l9p_describe_fcall()
1077 l9p_describe_getattr_mask(fcall->tgetattr.request_mask, sb); in l9p_describe_fcall()
1083 sbuf_printf(sb, " valid=0x%016" PRIx64, mask); in l9p_describe_fcall()
1084 l9p_describe_qid(" qid=", &fcall->rgetattr.qid, sb); in l9p_describe_fcall()
1086 l9p_describe_lperm(" mode=", fcall->rgetattr.mode, sb); in l9p_describe_fcall()
1088 l9p_describe_ugid(" uid=", fcall->rgetattr.uid, sb); in l9p_describe_fcall()
1090 l9p_describe_ugid(" gid=", fcall->rgetattr.gid, sb); in l9p_describe_fcall()
1092 sbuf_printf(sb, " nlink=%" PRIu64, in l9p_describe_fcall()
1095 sbuf_printf(sb, " rdev=0x%" PRIx64, in l9p_describe_fcall()
1098 l9p_describe_size(" size=", fcall->rgetattr.size, sb); in l9p_describe_fcall()
1100 sbuf_printf(sb, " blksize=%" PRIu64 " blocks=%" PRIu64, in l9p_describe_fcall()
1103 l9p_describe_time(sb, " atime=", in l9p_describe_fcall()
1107 l9p_describe_time(sb, " mtime=", in l9p_describe_fcall()
1111 l9p_describe_time(sb, " ctime=", in l9p_describe_fcall()
1115 l9p_describe_time(sb, " btime=", in l9p_describe_fcall()
1119 sbuf_printf(sb, " gen=0x%" PRIx64, fcall->rgetattr.gen); in l9p_describe_fcall()
1121 sbuf_printf(sb, " data_version=0x%" PRIx64, in l9p_describe_fcall()
1127 l9p_describe_fid(" fid=", fcall->hdr.fid, sb); in l9p_describe_fcall()
1130 sbuf_printf(sb, " valid=0x%08" PRIx64, mask); in l9p_describe_fcall()
1132 l9p_describe_lperm(" mode=", fcall->tsetattr.mode, sb); in l9p_describe_fcall()
1134 l9p_describe_ugid(" uid=", fcall->tsetattr.uid, sb); in l9p_describe_fcall()
1136 l9p_describe_ugid(" uid=", fcall->tsetattr.gid, sb); in l9p_describe_fcall()
1138 l9p_describe_size(" size=", fcall->tsetattr.size, sb); in l9p_describe_fcall()
1141 l9p_describe_time(sb, " atime=", in l9p_describe_fcall()
1145 sbuf_cat(sb, " atime=now"); in l9p_describe_fcall()
1149 l9p_describe_time(sb, " mtime=", in l9p_describe_fcall()
1153 sbuf_cat(sb, " mtime=now"); in l9p_describe_fcall()
1156 sbuf_cat(sb, " ctime=now"); in l9p_describe_fcall()
1163 l9p_describe_fid(" fid=", fcall->hdr.fid, sb); in l9p_describe_fcall()
1164 l9p_describe_fid(" newfid=", fcall->txattrwalk.newfid, sb); in l9p_describe_fcall()
1165 l9p_describe_name(" name=", fcall->txattrwalk.name, sb); in l9p_describe_fcall()
1169 l9p_describe_size(" size=", fcall->rxattrwalk.size, sb); in l9p_describe_fcall()
1173 l9p_describe_fid(" fid=", fcall->hdr.fid, sb); in l9p_describe_fcall()
1174 l9p_describe_name(" name=", fcall->txattrcreate.name, sb); in l9p_describe_fcall()
1175 l9p_describe_size(" size=", fcall->txattrcreate.attr_size, sb); in l9p_describe_fcall()
1176 sbuf_printf(sb, " flags=%" PRIu32, fcall->txattrcreate.flags); in l9p_describe_fcall()
1183 l9p_describe_readdir(sb, &fcall->io); in l9p_describe_fcall()
1187 l9p_describe_fid(" fid=", fcall->hdr.fid, sb); in l9p_describe_fcall()
1194 l9p_describe_fid(" fid=", fcall->hdr.fid, sb); in l9p_describe_fcall()
1196 sbuf_printf(sb, " type=%d flags=0x%" PRIx32 in l9p_describe_fcall()
1205 sbuf_printf(sb, " status=%d", fcall->rlock.status); in l9p_describe_fcall()
1209 l9p_describe_fid(" fid=", fcall->hdr.fid, sb); in l9p_describe_fcall()
1214 sbuf_printf(sb, " type=%d " in l9p_describe_fcall()
1223 l9p_describe_fid(" dfid=", fcall->tlink.dfid, sb); in l9p_describe_fcall()
1224 l9p_describe_fid(" fid=", fcall->hdr.fid, sb); in l9p_describe_fcall()
1225 l9p_describe_name(" name=", fcall->tlink.name, sb); in l9p_describe_fcall()
1232 l9p_describe_fid(" fid=", fcall->hdr.fid, sb); in l9p_describe_fcall()
1233 l9p_describe_name(" name=", fcall->tmkdir.name, sb); in l9p_describe_fcall()
1235 l9p_describe_lperm(" mode=", fcall->tmkdir.mode, sb); in l9p_describe_fcall()
1236 l9p_describe_ugid(" gid=", fcall->tmkdir.gid, sb); in l9p_describe_fcall()
1240 l9p_describe_qid(" qid=", &fcall->rmkdir.qid, sb); in l9p_describe_fcall()
1244 l9p_describe_fid(" olddirfid=", fcall->hdr.fid, sb); in l9p_describe_fcall()
1246 sb); in l9p_describe_fcall()
1247 l9p_describe_fid(" newdirfid=", fcall->trenameat.newdirfid, sb); in l9p_describe_fcall()
1249 sb); in l9p_describe_fcall()
1256 l9p_describe_fid(" dirfd=", fcall->hdr.fid, sb); in l9p_describe_fcall()
1257 l9p_describe_name(" name=", fcall->tunlinkat.name, sb); in l9p_describe_fcall()
1259 fcall->tunlinkat.flags, sb); in l9p_describe_fcall()
1266 sbuf_printf(sb, " <missing case in %s()>", __func__); in l9p_describe_fcall()