Bug 58799

Summary: mkswap > 2097159 blocks reports negative size
Product: [Retired] Red Hat Linux Reporter: Jeff Wiedemeier <jeff.wiedemeier>
Component: util-linuxAssignee: Tom Tromey <tromey>
Status: CLOSED CURRENTRELEASE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: patrickm
Target Milestone: ---   
Target Release: ---   
Hardware: alpha   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-01-31 00:28:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jeff Wiedemeier 2002-01-24 20:46:18 UTC
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:

Comment 1 Elliot Lee 2002-01-29 20:16:58 UTC
Patch going into util-linux-2.11n-3

Comment 2 Tom Tromey 2002-01-31 00:28:29 UTC
I've put Elliot's fix into 2.11f-18.
It will appear in the release candidate.


Comment 3 Beth Uptagrafft 2002-03-13 14:59:34 UTC
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.