mirror of
https://github.com/versity/scoutfs.git
synced 2025-12-23 05:25:18 +00:00
Print seqs in bmap items
The bmap items now have the sequence number that wrote each mapped block. Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
@@ -302,8 +302,8 @@ struct scoutfs_xattr {
|
||||
#define SCOUTFS_BLOCK_MAP_MASK (SCOUTFS_BLOCK_MAP_COUNT - 1)
|
||||
|
||||
struct scoutfs_block_map {
|
||||
__le32 crc[SCOUTFS_BLOCK_MAP_COUNT];
|
||||
__le64 blkno[SCOUTFS_BLOCK_MAP_COUNT];
|
||||
__le64 seq[SCOUTFS_BLOCK_MAP_COUNT];
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
@@ -126,8 +126,9 @@ static void print_block_map(struct scoutfs_block_map *map)
|
||||
|
||||
printf(" bmap:");
|
||||
for (i = 0; i < SCOUTFS_BLOCK_MAP_COUNT; i++)
|
||||
printf(" [%u] %llu",
|
||||
i, le64_to_cpu(map->blkno[i]));
|
||||
printf(" [%u] %llu:%llu",
|
||||
i, le64_to_cpu(map->blkno[i]),
|
||||
le64_to_cpu(map->seq[i]));
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user