From 1c47bd67e8c1a41e3d892acc7f0c220650709602 Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Fri, 19 Aug 2016 09:26:52 +1000 Subject: [PATCH] xfs_io: bmap should print 'delalloc', not '-2' The bmap command (without -v) should print 'delalloc' and not -2 for the physical block number of an extent. Signed-off-by: Darrick J. Wong Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- io/bmap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/io/bmap.c b/io/bmap.c index 04d04c714..b2e48da25 100644 --- a/io/bmap.c +++ b/io/bmap.c @@ -249,6 +249,8 @@ bmap_f( map[i + 1].bmv_length - 1LL)); if (map[i + 1].bmv_block == -1) printf(_("hole")); + else if (map[i + 1].bmv_block == -2) + printf(_("delalloc")); else { printf("%lld..%lld", (long long) map[i + 1].bmv_block, -- 2.47.2