lkml.org 
[lkml]   [2004]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subjectdevfs -> udev transition: vcsN are not created
Date
I am migrating my 2.6 systems from devfs to udev.
Versions:

# uname -a
Linux firebird 2.6.7-bk20 #6 Mon Jul 12 01:23:31 EEST 2004 i686 unknown
# ls -d udev* hotplug*
hotplug-2004_04_01 udev-030

In early boot, when root fs is readonly yet, I start udev this way:

mount -t ramfs none /dev
env - udevd & sleep 1
udevstart

and then continue as normal. Things mostly work.
However, I noticed that vcsN device nodes are missing
(I tried to start Midnight Commander and it failed).
This can be due to the fact that I start agettys very
late in boot sequence, and thus all ttyN's were not
open at the time of udevstart, only first one was (tty1).

I logged in and did:

# ls -l /udev >before
# strace -o us.log udevstart
# ls -l /udev >after
# diff -u before after >diff

This worked, vcsN's appeared:

--- before Wed Aug 25 14:52:42 2004
+++ after Wed Aug 25 14:53:10 2004
@@ -1,4 +1,6 @@
total 0
+crw------- 1 root root 10, 175 Aug 25 14:53 agpgart
+lrwxrwxrwx 1 root root 3 Aug 25 14:53 cdrom -> hdb
crw------- 1 root root 5, 1 Aug 25 2004 console
brw------- 1 root root 2, 0 Aug 25 2004 fd0
crw------- 1 root root 1, 7 Aug 25 2004 full
@@ -10,6 +12,7 @@
brw------- 1 root root 3, 4 Aug 25 2004 hda4
brw------- 1 root root 3, 64 Aug 25 2004 hdb
crw------- 1 root root 10, 183 Aug 25 2004 hw_random
+drwxr-xr-x 2 root root 0 Aug 25 14:53 input
crw------- 1 root root 1, 2 Aug 25 2004 kmem
crw------- 1 root root 1, 11 Aug 25 2004 kmsg
srw-rw-rw- 1 root root 0 Aug 25 14:52 log
@@ -52,7 +55,7 @@
crw------- 1 root root 4, 1 Aug 25 2004 tty1
crw------- 1 root root 4, 10 Aug 25 2004 tty10
crw------- 1 root root 4, 11 Aug 25 14:52 tty11
-crw------- 1 root root 4, 12 Aug 25 14:52 tty12
+crw------- 1 root root 4, 12 Aug 25 14:53 tty12
crw------- 1 root root 4, 13 Aug 25 2004 tty13
crw------- 1 root root 4, 14 Aug 25 2004 tty14
crw------- 1 root root 4, 15 Aug 25 2004 tty15
@@ -60,7 +63,7 @@
crw------- 1 root root 4, 17 Aug 25 2004 tty17
crw------- 1 root root 4, 18 Aug 25 2004 tty18
crw------- 1 root root 4, 19 Aug 25 2004 tty19
-crw--w---- 1 root tty 4, 2 Aug 25 14:52 tty2
+crw------- 1 root tty 4, 2 Aug 25 14:53 tty2
crw------- 1 root root 4, 20 Aug 25 2004 tty20
crw------- 1 root root 4, 21 Aug 25 2004 tty21
crw------- 1 root root 4, 22 Aug 25 2004 tty22
@@ -163,6 +166,24 @@
crw------- 1 root root 1, 9 Aug 25 2004 urandom
crw------- 1 root root 7, 0 Aug 25 2004 vcs
crw------- 1 root root 7, 1 Aug 25 2004 vcs1
+crw------- 1 root root 7, 11 Aug 25 14:53 vcs11
+crw------- 1 root root 7, 12 Aug 25 14:53 vcs12
+crw------- 1 root root 7, 2 Aug 25 14:53 vcs2
+crw------- 1 root root 7, 3 Aug 25 14:53 vcs3
+crw------- 1 root root 7, 4 Aug 25 14:53 vcs4
+crw------- 1 root root 7, 5 Aug 25 14:53 vcs5
+crw------- 1 root root 7, 6 Aug 25 14:53 vcs6
+crw------- 1 root root 7, 7 Aug 25 14:53 vcs7
+crw------- 1 root root 7, 8 Aug 25 14:53 vcs8
crw------- 1 root root 7, 128 Aug 25 2004 vcsa
crw------- 1 root root 7, 129 Aug 25 2004 vcsa1
+crw------- 1 root root 7, 139 Aug 25 14:53 vcsa11
+crw------- 1 root root 7, 140 Aug 25 14:53 vcsa12
+crw------- 1 root root 7, 130 Aug 25 14:53 vcsa2
+crw------- 1 root root 7, 131 Aug 25 14:53 vcsa3
+crw------- 1 root root 7, 132 Aug 25 14:53 vcsa4
+crw------- 1 root root 7, 133 Aug 25 14:53 vcsa5
+crw------- 1 root root 7, 134 Aug 25 14:53 vcsa6
+crw------- 1 root root 7, 135 Aug 25 14:53 vcsa7
+crw------- 1 root root 7, 136 Aug 25 14:53 vcsa8
crw------- 1 root root 1, 5 Aug 25 2004 zero
Strace and syslog are in attached tarball.

PS. Also mouse doesn't paste in console, but let's handle
it one at a time.
--
vda[unhandled content-type:application/x-tbz]
\
 
 \ /
  Last update: 2005-03-22 14:05    [W:0.073 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site