Bug 58799 - mkswap > 2097159 blocks reports negative size
Summary: mkswap > 2097159 blocks reports negative size
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: util-linux
Version: 7.3
Hardware: alpha
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tom Tromey
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-01-24 20:46 UTC by Jeff Wiedemeier
Modified: 2014-08-11 05:46 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-01-31 00:28:36 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.