Bug 19357

Summary: swap info incorrect after using sysinstall's label editor
Product: Base System Reporter: genti <genti>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-RELEASE   
Hardware: Any   
OS: Any   

Description genti 2000-06-17 20:10:01 UTC
	
As I mentioned above my hard drive was separated in two slices. Each about 1 GIG in size.
FreeBSD was on the second one and I had windows on the first one. I wanted to delete the windows
slice and convert it to a FreeBSD one. To achieve that I used /stand/sysinstall. First the Fdisk
to convert the slice to a FreeBSD one and the the Disk Label editor to create the file system in it.
The operation went smooth and as expected. However, when I later issued a top command, I noticed
that my swap size had increased four fold. I looked at the partition information from sysinstall's
label editor, and the swap partition was - as it had always been - 69 mb in size.
I did some more investigations and found the swapinfo command. This is what it outputs:

Device          1K-blocks     Used    Avail Capacity  Type
/dev/ad0s2b         70768     3232    67536     5%    Interleaved
/dev/ad0s2b         70768       20    70748     0%    Interleaved
/dev/ad0s2b         70768        0    70768     0%    Interleaved
/dev/ad0s2b         70768        0    70768     0%    Interleaved
Total              283072     3252   279820     1%

As you can see the same 69 mb swap partition is being counted 4 times. There is even some
usage on the second one?!!?

How-To-Repeat: 
	

/stand/sysinstall
erase and create some slices with fdisk and initialize them with disk label editor.
Comment 1 Alexey Zelkin freebsd_committer freebsd_triage 2000-07-08 14:53:33 UTC
Responsible Changed
From-To: gnats-admin->freebsd-bugs

Misfiled PR
Comment 2 Mike Barcroft freebsd_committer freebsd_triage 2001-07-22 04:20:05 UTC
State Changed
From-To: open->feedback


Does this problem still occur in newer versions of FreeBSD, 
such as 4.3-RELEASE?
Comment 3 Mike Barcroft freebsd_committer freebsd_triage 2001-08-16 18:19:26 UTC
State Changed
From-To: feedback->closed


I am unable to reproduce this problem and e-mail sent to the originator 
bounces.  If someone else is able to reproduce this problem this PR 
can be re-opened.