mirror of
https://github.com/versity/scoutfs.git
synced 2026-01-06 20:16:25 +00:00
Iniitialize segment header when writing item
Initialize the segment header as the items are written. This isn't a great place to do it. Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
@@ -474,6 +474,10 @@ void scoutfs_seg_first_item(struct super_block *sb, struct scoutfs_segment *seg,
|
||||
u32 key_off;
|
||||
u32 val_off;
|
||||
|
||||
/* XXX the segment block header is a mess, be better */
|
||||
sblk->segno = cpu_to_le64(seg->segno);
|
||||
sblk->max_seq = cpu_to_le64(1);
|
||||
|
||||
key_off = pos_off(seg, nr_items);
|
||||
val_off = key_off + key_bytes;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user