Lines Matching defs:vsa
22 #include <storage/vsa.h>
43 static errval_t vsic_write(struct storage_vsic *vsic, struct storage_vsa *vsa,
47 assert(vsa != NULL);
53 cb->aio_fildes = vsa->fd;
64 static errval_t vsic_read(struct storage_vsic *vsic, struct storage_vsa *vsa,
68 assert(vsa != NULL);
74 cb->aio_fildes = vsa->fd;
85 static errval_t vsic_flush(struct storage_vsic *vsic, struct storage_vsa *vsa)
88 assert(vsa != NULL);
93 cb->aio_fildes = vsa->fd;
171 /* errval_t storage_vsa_alloc(struct storage_vsa *vsa, size_t size) */
176 /* snprintf(filename, 32, "%u.vsa", vsa_num++); */
177 /* vsa->fd = open(filename, O_RDWR | O_CREAT | O_TRUNC, 0644); */
178 /* assert(vsa->fd != -1); */
183 errval_t storage_vsa_acquire(struct storage_vsa *vsa, const char *name,
188 snprintf(filename, 32, "%s.vsa", name);
189 vsa->fd = open(filename, O_RDWR | O_CREAT, 0644);
190 assert(vsa->fd != -1);
195 errval_t storage_vsa_resize(struct storage_vsa *vsa, size_t size)