Red Hat Bugzilla – Bug 58799
mkswap > 2097159 blocks reports negative size
Last modified: 2014-08-11 01:46:01 EDT
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)
Steps to Reproduce:
1. Create a large swap partition with fdisk (4G is plenty)
2. mkswap on the newly created partition
Swap is created, but the size is reported as a negative number
Create swap and report correct size
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.