after maximal size is reached)
fsync(obuck_fd);
}
+sh_off_t
+obuck_size(void)
+{
+ return sh_seek(obuck_fd, 0, SEEK_END);
+}
+
static void
obuck_get(oid_t oid)
{
void obuck_init(int writeable); /* Initialize the bucket module */
void obuck_cleanup(void); /* Clean up the bucket module */
void obuck_sync(void); /* Flush all buffers to disk */
+sh_off_t obuck_size(void); /* Returns current size of bucket file */
/* Searching for buckets */
void obuck_find_by_oid(struct obuck_header *hdrp);