Lines Matching defs:vsic
24 STORAGE_VSIC_ROUND(log->vsic, sizeof(struct log_header))
27 STORAGE_VSIC_ROUND(log->vsic, sizeof(struct tenaciousd_log_entry))
44 storage_malloc(log->vsic, sizeof(struct tenaciousd_log_entry));
48 errval_t err = log->vsic->ops.read(log->vsic, log->vsa, offset,
51 err = log->vsic->ops.wait(log->vsic);
67 entry = storage_realloc(log->vsic, entry,
70 err = log->vsic->ops.read(log->vsic, log->vsa,
75 err = log->vsic->ops.wait(log->vsic);
89 struct storage_vsic *vsic)
92 assert(vsic != NULL);
99 log->vsic = vsic;
102 struct log_header *header = storage_alloca(vsic, sizeof(struct log_header));
104 errval_t err = vsic->ops.read(vsic, vsa, 0,
107 err = vsic->ops.wait(vsic);
112 assert(header->blocksize == vsic->blocksize);
128 log->end += STORAGE_VSIC_ROUND(log->vsic, logentry->size);
136 header->blocksize = vsic->blocksize;
137 header->end = STORAGE_VSIC_ROUND(vsic, sizeof(struct log_header));
141 err = vsic->ops.write(vsic, vsa, 0, sizeof(struct log_header), header);
143 err = vsic->ops.flush(vsic, vsa);
145 err = vsic->ops.wait(vsic);
157 errval_t err = log->vsic->ops.flush(log->vsic, log->vsa);
162 storage_alloca(log->vsic, sizeof(struct log_header));
169 header->blocksize = log->vsic->blocksize;
172 err = log->vsic->ops.write(log->vsic, log->vsa, 0, sizeof(struct log_header), header);
174 err = log->vsic->ops.flush(log->vsic, log->vsa);
176 err = log->vsic->ops.wait(log->vsic);
187 struct storage_vsic *vsic = log->vsic;
191 STORAGE_VSIC_ROUND(vsic, entry->size + sizeof(struct tenaciousd_log_entry));
195 return log->vsic->ops.
196 write(vsic, log->vsa, end,
231 iter.offset += STORAGE_VSIC_ROUND(log->vsic, iter.entry->size);
245 struct tenaciousd_log_entry *entry = storage_malloc(log->vsic, *size);
248 *size = STORAGE_VSIC_ROUND(log->vsic, *size)
261 entry = storage_realloc(log->vsic, entry, *newsize);
264 *newsize = STORAGE_VSIC_ROUND(log->vsic, *newsize)
273 storage_free(log->vsic, entry);