Revision faa44e3d hw/9pfs/virtio-9p.h
b/hw/9pfs/virtio-9p.h | ||
---|---|---|
101 | 101 |
#define P9_NOTAG (u16)(~0) |
102 | 102 |
#define P9_NOFID (u32)(~0) |
103 | 103 |
#define P9_MAXWELEM 16 |
104 |
static inline const char *rpath(FsContext *ctx, const char *path, char *buffer) |
|
105 |
{ |
|
106 |
snprintf(buffer, PATH_MAX, "%s/%s", ctx->fs_root, path); |
|
107 |
return buffer; |
|
108 |
} |
|
104 | 109 |
|
105 | 110 |
/* |
106 | 111 |
* ample room for Twrite/Rread header |
Also available in: Unified diff