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:
Zach Brown
2016-10-18 11:53:29 -07:00
parent b436772376
commit a901db2ff7
2 changed files with 4 additions and 3 deletions

View File

@@ -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];
};
/*

View File

@@ -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");
}