Description of Problem: Running mkswap on a partition larger than 2097159 blocks (or specifying a size larger than 2097159 blocks on the mkswap command line with a partition large enough to handle it) reports the swap size created as a negative number. The swap is actually set up correctly (and reports the correct size in use after swapon) but mkswap reports the size as negative Version-Release number of selected component (if applicable): Red Hat Linux release 7.1.90 (Roswell) util-linux-2.11f-17 How Reproducible: very Steps to Reproduce: 1. Create a large swap partition with fdisk (4G is plenty) 2. mkswap on the newly created partition Actual Results: Swap is created, but the size is reported as a negative number Expected Results: Create swap and report correct size Additional Information:
Patch going into util-linux-2.11n-3
I've put Elliot's fix into 2.11f-18. It will appear in the release candidate.
I'm closing this case because it was fixed in the Feb 22 delivery. Please let us know if you still see any problems with this issue.