]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Fix 64k blocksize handling in xfs_repair
authorBarry Naujok <bnaujok@sgi.com>
Tue, 2 Dec 2008 03:02:22 +0000 (03:02 +0000)
committerBarry Naujok <bnaujok@sgi.com>
Tue, 2 Dec 2008 03:02:22 +0000 (03:02 +0000)
Merge of master-melb:xfs-cmds:32616a by kenmcd.

  Fix 64k blocksize handling in xfs_repair

repair/dino_chunks.c

index 9142f89ec5b7c166d02425ae4ad08dd71c06e933..4ccf804ed11c7febdbbae81396db1068a8306280 100644 (file)
@@ -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