From: rutger@mail.com
To: linux-kernel@vger.kernel.org
Subject: [muPATCH] TUN/TAP sysfs fix
Date: Sat, 13 Mar 2004 21:49:15 +0100 [thread overview]
Message-ID: <20040313204915.GB27653@mail.com> (raw)
Hi,
Using Gentoo2004.0 with udev (with /dev on ramfs) gives most devices
from sysfs. However, TUN/TAP is not listed. Digging into it further
revealed the error:
# ls /sys/class/misc
agpgart hw_random net/tun psaux rtc
# ls -l /sys/class/misc
ls: /sys/class/misc/net/tun: No such file or directory
total 0
drwxr-xr-x 2 root root 0 Mar 13 18:43 agpgart
...
A file with a '/' embedded.
Suggestion: change name from 'net/tun' to 'net_tun', to be as
unobtrusive as possible, which lets met use /dev/net_tun (using the
Unix ASCII to filename conversion convention ;)
The correct solution might be to change sysfs into auto-creating
directories for .names with embedded slashes, but that's outside the
scope of this quick make-it-work-again hack...
*** linux-2.6/drivers/net/tun.c~ Sat Mar 13 20:20:17 2004
--- linux-2.6/drivers/net/tun.c Sat Mar 13 20:20:57 2004
***************
*** 602,608 ****
static struct miscdevice tun_miscdev = {
.minor = TUN_MINOR,
! .name = "net/tun",
.fops = &tun_fops
};
--- 602,608 ----
static struct miscdevice tun_miscdev = {
.minor = TUN_MINOR,
! .name = "net_tun",
.fops = &tun_fops
};
--
Rutger Nijlunsing ---------------------------- rutger ed tux tmfweb nl
never attribute to a conspiracy which can be explained by incompetence
----------------------------------------------------------------------
reply other threads:[~2004-03-13 20:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040313204915.GB27653@mail.com \
--to=rutger@mail.com \
--cc=linux-kernel@tux.tmfweb.nl \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox