Revision d62dbb51 hw/virtio-9p.h
b/hw/virtio-9p.h | ||
---|---|---|
155 | 155 |
int32_t n_muid; |
156 | 156 |
} V9fsStat; |
157 | 157 |
|
158 |
enum { |
|
159 |
P9_FID_NONE = 0, |
|
160 |
P9_FID_FILE, |
|
161 |
P9_FID_DIR, |
|
162 |
P9_FID_XATTR, |
|
163 |
}; |
|
164 |
|
|
165 |
typedef struct V9fsXattr |
|
166 |
{ |
|
167 |
int64_t copied_len; |
|
168 |
int64_t len; |
|
169 |
void *value; |
|
170 |
V9fsString name; |
|
171 |
int flags; |
|
172 |
} V9fsXattr; |
|
173 |
|
|
158 | 174 |
struct V9fsFidState |
159 | 175 |
{ |
176 |
int fid_type; |
|
160 | 177 |
int32_t fid; |
161 | 178 |
V9fsString path; |
162 |
int fd; |
|
163 |
DIR *dir; |
|
179 |
union { |
|
180 |
int fd; |
|
181 |
DIR *dir; |
|
182 |
V9fsXattr xattr; |
|
183 |
} fs; |
|
164 | 184 |
uid_t uid; |
165 | 185 |
V9fsFidState *next; |
166 | 186 |
}; |
Also available in: Unified diff