mirror of
https://github.com/versity/scoutfs.git
synced 2026-04-22 22:40:31 +00:00
The code that works with the super block had drifted a bit. We still had two from an old design and we weren't doing anything with its crc. Move to only using one super block at a fixed blkno and store and verify its crc field by sharing code with the btree block checksumming. Signed-off-by: Zach Brown <zab@versity.com>
11 lines
320 B
C
11 lines
320 B
C
#ifndef _SCOUTFS_BLOCK_H_
|
|
#define _SCOUTFS_BLOCK_H_
|
|
|
|
__le32 scoutfs_block_calc_crc(struct scoutfs_block_header *hdr);
|
|
bool scoutfs_block_valid_crc(struct scoutfs_block_header *hdr);
|
|
bool scoutfs_block_valid_ref(struct super_block *sb,
|
|
struct scoutfs_block_header *hdr,
|
|
__le64 seq, __le64 blkno);
|
|
|
|
#endif
|