From bc828eed566d80eec230200f6d4bf322b2979be6 Mon Sep 17 00:00:00 2001 From: Barry Naujok Date: Tue, 2 Dec 2008 03:02:22 +0000 Subject: [PATCH] Fix 64k blocksize handling in xfs_repair Merge of master-melb:xfs-cmds:32616a by kenmcd. Fix 64k blocksize handling in xfs_repair --- repair/dino_chunks.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/repair/dino_chunks.c b/repair/dino_chunks.c index 9142f89ec..4ccf804ed 100644 --- a/repair/dino_chunks.c +++ b/repair/dino_chunks.c @@ -609,7 +609,8 @@ process_inode_chunk( if (blks_per_cluster == 0) blks_per_cluster = 1; cluster_count = XFS_INODES_PER_CHUNK / inodes_per_cluster; - ASSERT(cluster_count > 0); + if (cluster_count == 0) + cluster_count = 1; /* * get all blocks required to read in this chunk (may wind up -- 2.47.2