From: Barry Naujok Date: Tue, 2 Dec 2008 03:02:22 +0000 (+0000) Subject: Fix 64k blocksize handling in xfs_repair X-Git-Tag: v3.0.0~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bc828eed566d80eec230200f6d4bf322b2979be6;p=thirdparty%2Fxfsprogs-dev.git Fix 64k blocksize handling in xfs_repair Merge of master-melb:xfs-cmds:32616a by kenmcd. Fix 64k blocksize handling in xfs_repair --- 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