Bug 9 - swapinfo fails to find device name for sd1b
Summary: swapinfo fails to find device name for sd1b
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: FreeBSD Core Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1994-10-24 07:50 UTC by jc
Modified: 1997-08-25 01:20 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jc 1994-10-24 07:50:00 UTC
        swapinfo fails to find device name for /dev/sd1b

	Device     512-blocks       Used  Available   Capacity
	/dev/sd0b      131072          0     131072       0%
	/dev/??         61440          0      61440       0%
	Total          192512          0     192512       0%

	swapinfo uses dbopen() to lookup the device name and
	for some reason it fails.  sd1b is in dev.db.

Fix: 

Use devname() in libc rather than swapinfo's devname.c.
	Remove swapinfo/devname.c
	Remove devname.c in swapinfo/Makefile
How-To-Repeat: 
	Execute swapinfo with swapping on second device
Comment 1 Bruce Evans freebsd_committer freebsd_triage 1995-03-25 14:14:04 UTC
State Changed
From-To: open->closed

Fix applied in revision 1.3 of swapinfo/Makefile.  (cvs doesn' log the fix 
properly.  The fix is to remove devname.c, but there is no evidence of this 
in devname.c,v.) 

Comment 2 saken 1997-08-24 21:09:42 UTC
>Submitter-Id:   saken@chardos.connix.com
>Originator:     Scott Kenney
>Organization:   Agents of Fortune, LTD
>Confidential:   no
>Synopsis:       plan9/9menu version upgrade 1.4 to 1.5
>Severity:       non-critical
>Priority:       low
>Category:       ports
>Release:        FreeBSD 2.2-STABLE i386
>Class:          change-request
>Environment: 

FreeBSD chardos.connix.com 2.2-STABLE FreeBSD 2.2-STABLE #2: Sun Aug  3 04:43:52 EDT 1997     root@chardos.connix.com:/usr/src/sys/compile/CHARDOS  i386

>Description: 

9menu is currently at version 1.5, the version in ports is 1.4,
the distribution site has also changed

>How-To-Repeat: 

	N/A

>Fix: 

apply the following patch to /usr/ports/plan9/9menu

diff -ru /usr/ports/plan9/9menu/Makefile /usr/ports/plan9/9menu.new/Makefile
--- /usr/ports/plan9/9menu/Makefile	Mon Nov 11 21:19:29 1996
+++ /usr/ports/plan9/9menu.new/Makefile	Fri Aug 22 21:31:49 1997
@@ -6,9 +6,9 @@
 # $Id: Makefile,v 1.3 1996/11/12 02:19:29 obrien Exp $
 #
 
-DISTNAME=	9menu-1.4
+DISTNAME=	9menu-1.5
 CATEGORIES=	plan9
-MASTER_SITES=	ftp://ftp.ecf.toronto.edu/pub/plan9/arnold/
+MASTER_SITES=	ftp://ftp.mathcs.emory.edu/pub/arnold/
 EXTRACT_SUFX=	.shar.gz
 
 MAINTAINER=	erich@FreeBSD.org
diff -ru /usr/ports/plan9/9menu/files/md5 /usr/ports/plan9/9menu.new/files/md5
--- /usr/ports/plan9/9menu/files/md5	Mon Aug 14 00:07:57 1995
+++ /usr/ports/plan9/9menu.new/files/md5	Sun Aug 24 15:49:39 1997
@@ -1 +1 @@
-MD5 (9menu-1.4.shar.gz) = 56b5f19f2d4daa494250f89485dd355a
+MD5 (9menu-1.5.shar.gz) = 00f8dcb2bd1ab9291ce15834eb4e1588
diff -ru /usr/ports/plan9/9menu/pkg/DESCR /usr/ports/plan9/9menu.new/pkg/DESCR
--- /usr/ports/plan9/9menu/pkg/DESCR	Mon Aug 14 00:07:58 1995
+++ /usr/ports/plan9/9menu.new/pkg/DESCR	Fri Aug 22 21:41:26 1997
@@ -7,4 +7,4 @@
 
 --
 Arnold Robbins
-arnold@skeeve.atl.ga.us
+arnold@gnu.ai.mit.edu