Subject: bin/13473: dev_mkdb doesn't work if /var on different fs
To: None <gnats-bugs@gnats.netbsd.org>
From: Christian Groessler <cpg@aladdin.de>
List: netbsd-bugs
Date: 07/15/2001 19:00:15
>Number:         13473
>Category:       bin
>Synopsis:       dev_mkdb doesn't work if /var on different fs
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 15 09:57:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Christian Groessler
>Release:        Jul-7-2001
>Organization:
	
>Environment:
	
System: NetBSD gibbon.cnet.aladdin.de 1.5W NetBSD 1.5W (GIBBON) #0: Sat Jul 7 18:55:31 CEST 2001 chris@gibbon.cnet.aladdin.de:/usr/oth2/src/sys/arch/i386/compile/GIBBON i386
Architecture: i386
Machine: i386
>Description:
	dev_mkdb is unable to generate /var/run/dev.db if var is on
another partition than /tmp
The following error appears:

[root@gibbon:~]# dev_mkdb 
dev_mkdb: rename /tmp/dev.tmp to /var/run/dev.db: Cross-device link

Here are my mount points:

/dev/wd0a on / type ffs (local)
/dev/wd0e on /var type ffs (local)
/dev/wd0f on /usr type ffs (local)
/dev/sd0b on /usr/oth type ext2fs (local)
/dev/wd1f on /usr/oth2 type ffs (local)

>How-To-Repeat:
	put /var on different fs than /tmp and run db_mkdb

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: