Files
scoutfs/kmod/src/chunk.h
Zach Brown edf3c8a5d4 scoutfs: add initial item block writing
Add a sync_fs method that writes dirty items into level 0 item blocks.

Add chunk allocator code to allocate new item blocks in free chunks.  As
the allocator bitmap is modified it adds bitmap entries to the ring.

As new item blocks are allocated we create manifest entries that
describe their block location and keys.  The entry is added to the
in-memory manifest and to entries in the ring.

This isn't complete and there's still bugs but this is enough to start
building on.

Signed-off-by: Zach Brown <zab@versity.com>
2016-03-17 17:47:32 -07:00

9 lines
219 B
C

#ifndef _SCOUTFS_CHUNK_H_
#define _SCOUTFS_CHUNK_H_
void scoutfs_set_chunk_alloc_bits(struct super_block *sb,
struct scoutfs_ring_bitmap *bm);
int scoutfs_alloc_chunk(struct super_block *sb, u64 *blkno);
#endif