From a901db2ff749018c01452f624a83170c7b186ef3 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Tue, 18 Oct 2016 11:53:29 -0700 Subject: [PATCH] Print seqs in bmap items The bmap items now have the sequence number that wrote each mapped block. Signed-off-by: Zach Brown --- utils/src/format.h | 2 +- utils/src/print.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/utils/src/format.h b/utils/src/format.h index 7a02c26a..58fea85f 100644 --- a/utils/src/format.h +++ b/utils/src/format.h @@ -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]; }; /* diff --git a/utils/src/print.c b/utils/src/print.c index 29c18dea..9877be90 100644 --- a/utils/src/print.c +++ b/utils/src/print.c @@ -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"); }