Re: MAKEDEV warning with sysinstall ?

2000-05-13 Thread sthaug

  No, I havn't tracked down the last couple of causes of this, but I
  will try to reproduce it as you describe it with some debugging added.
 
 How hard would it be to print the filename (or the device/inode) that
 triggers the warning?  
 
 Not at all (warning: cutpasted patch, tabs are screwed up!)

A similar message is in /sys/miscfs/specfs/spec_vnops.c now. Anyway,
there is still at least one case of devices being opened in block mode
in the *kernel*, namely the following VFS_MOUNT call at line 215 of
vfs_mountroot_try() (/sys/kern/vfs_conf.c):

error = VFS_MOUNT(mp, NULL, NULL, NULL, curproc);

Typical message:

May 13 20:36:29 bp6 /kernel: Mounting root from ufs:/dev/ad0s1d
May 13 20:36:29 bp6 /kernel: Device char-major=116 minor=131075 opened in block mode, 
convert to char mode with /dev/MAKEDEV before 2000-07-01

(Yes, I have -current root on ad0s1d, and -stable root on ad0s1a.)

Steinar Haug, Nethelp consulting, [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: MAKEDEV warning with sysinstall ?

2000-05-09 Thread Sheldon Hearn



On Mon, 08 May 2000 15:41:55 EST, Erik de Zeeuw wrote:

 I ran MAKEDEV all, but the message still appear. The messages I found
 about this on the archives says to do a 'ls -l /dev | grep ^b', and
 to remake all devices listed, but there's no device listed when I'm
 doing the 'ls -l /dev | grep ^b'.

I'm not sure what that'll score you.  Try this:

cd /dev
for i in `ls`; do if test -b $i; then echo $i; fi; done

Ciao,
Sheldon.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: MAKEDEV warning with sysinstall ?

2000-05-09 Thread Chris D. Faulhaber

On Tue, 9 May 2000, Sheldon Hearn wrote:

 
 
 On Mon, 08 May 2000 15:41:55 EST, Erik de Zeeuw wrote:
 
  I ran MAKEDEV all, but the message still appear. The messages I found
  about this on the archives says to do a 'ls -l /dev | grep ^b', and
  to remake all devices listed, but there's no device listed when I'm
  doing the 'ls -l /dev | grep ^b'.
 
 I'm not sure what that'll score you.  Try this:
 
   cd /dev
   for i in `ls`; do if test -b $i; then echo $i; fi; done
 

Hmmm...

find /dev -type b -print

-
Chris D. Faulhaber - [EMAIL PROTECTED] - [EMAIL PROTECTED]

FreeBSD: The Power To Serve   -   http://www.FreeBSD.org



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: MAKEDEV warning with sysinstall ?

2000-05-08 Thread Wilko Bulte

On Mon, May 08, 2000 at 03:41:55PM -0500, Erik de Zeeuw wrote:
 
 I installed FreeBSD 5.0-2506-CURRENT on an AMD K6-2, 64Mb, 4Gb, and
 when I first launch /stand/sysinstall after the system has start, the
 following message appears :
 
 ... /kernel: WARNING: run /dev/MAKEDEV before 2000-06-01 to get rid of
 block devices
 
 I searched the list archives and find some informations about this, but
 nothing that helps me understand why I get this message.

This is because -current no longer has any block devices so /dev/MAKEDEV
needs (well, it is cleaner) to remove the old device nodes.

-- 
Wilko Bulte Powered by FreeBSD  http://www.freebsd.org
http://www.tcja.nl


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: MAKEDEV warning with sysinstall ?

2000-05-08 Thread Poul-Henning Kamp

In message [EMAIL PROTECTED], Erik de Zeeuw writes:

I installed FreeBSD 5.0-2506-CURRENT on an AMD K6-2, 64Mb, 4Gb, and
when I first launch /stand/sysinstall after the system has start, the
following message appears :

... /kernel: WARNING: run /dev/MAKEDEV before 2000-06-01 to get rid of
block devices

I searched the list archives and find some informations about this, but
nothing that helps me understand why I get this message.

Any idea about what could cause this message to come up ?

No, I havn't tracked down the last couple of causes of this, but I
will try to reproduce it as you describe it with some debugging added.

Thanks for the hint!

--
Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED] | TCP/IP since RFC 956
FreeBSD coreteam member | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: MAKEDEV warning with sysinstall ?

2000-05-08 Thread Dan Nelson

In the last episode (May 08), Poul-Henning Kamp said:
 In message [EMAIL PROTECTED], Erik de Zeeuw writes:
 
 I installed FreeBSD 5.0-2506-CURRENT on an AMD K6-2, 64Mb, 4Gb, and
 when I first launch /stand/sysinstall after the system has start, the
 following message appears :
 
 ... /kernel: WARNING: run /dev/MAKEDEV before 2000-06-01 to get rid of
 block devices
 
 I searched the list archives and find some informations about this, but
 nothing that helps me understand why I get this message.
 
 Any idea about what could cause this message to come up ?
 
 No, I havn't tracked down the last couple of causes of this, but I
 will try to reproduce it as you describe it with some debugging added.

How hard would it be to print the filename (or the device/inode) that
triggers the warning?  

-- 
Dan Nelson
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: MAKEDEV warning with sysinstall ?

2000-05-08 Thread Poul-Henning Kamp

In message [EMAIL PROTECTED], Dan Nelson writes:
In the last episode (May 08), Poul-Henning Kamp said:
 In message [EMAIL PROTECTED], Erik de Zeeuw writes:
 
 I installed FreeBSD 5.0-2506-CURRENT on an AMD K6-2, 64Mb, 4Gb, and
 when I first launch /stand/sysinstall after the system has start, the
 following message appears :
 
 ... /kernel: WARNING: run /dev/MAKEDEV before 2000-06-01 to get rid of
 block devices
 
 I searched the list archives and find some informations about this, but
 nothing that helps me understand why I get this message.
 
 Any idea about what could cause this message to come up ?
 
 No, I havn't tracked down the last couple of causes of this, but I
 will try to reproduce it as you describe it with some debugging added.

How hard would it be to print the filename (or the device/inode) that
triggers the warning?  

Not at all (warning: cutpasted patch, tabs are screwed up!)

Index: kern_conf.c
===
RCS file: /home/ncvs/src/sys/kern/kern_conf.c,v
retrieving revision 1.75
diff -u -r1.75 kern_conf.c
--- kern_conf.c 2000/03/25 21:10:20 1.75
+++ kern_conf.c 2000/05/06 15:06:33
@@ -270,7 +270,8 @@
if (!whine) {
printf("WARNING: run /dev/MAKEDEV before 2000-06-01 to 
get rid of block devices\n");
whine++;
}
+   printf("Whine: %d/%d\n", umajor(x), uminor(x));
return makebdev(umajor(x), uminor(x));
default:
Debugger("udev2dev(...,X)");


--
Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED] | TCP/IP since RFC 956
FreeBSD coreteam member | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message