Commit 14145346 authored by Eric Sandeen's avatar Eric Sandeen Committed by Stephen Lord

[XFS] Allow full 32 bits in sector number when XFS_BIG_BLKNOS not set

SGI Modid: 2.5.x-xfs:slinx:158757a
parent b08b2737
......@@ -285,9 +285,9 @@ xfs_mount_validate_sb(
#if !XFS_BIG_BLKNOS
if (unlikely(
(sbp->sb_dblocks << (__uint64_t)(sbp->sb_blocklog - BBSHIFT))
> INT_MAX ||
> UINT_MAX ||
(sbp->sb_rblocks << (__uint64_t)(sbp->sb_blocklog - BBSHIFT))
> INT_MAX)) {
> UINT_MAX)) {
cmn_err(CE_WARN,
"XFS: File system is too large to be mounted on this system.");
return XFS_ERROR(E2BIG);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment