> /* > * do some validation on the block contents > */ > - if ((be32_to_cpu(block->bb_magic) != XFS_BMAP_MAGIC) || > + if ((block->bb_magic != cpu_to_be32(XFS_BMAP_MAGIC) && > + block->bb_magic != cpu_to_be32(XFS_BMAP_CRC_MAGIC)) || > (be16_to_cpu(block->bb_level) != level)) Seems like this should be factored into a well-documented helper function. _______________________________________________ xfs mailing list xfs@xxxxxxxxxxx http://oss.sgi.com/mailman/listinfo/xfs