* Re: [2.6.3] Sysfs breakage - tun.ko
2004-03-01 20:20 ` Kevin P. Fleming
@ 2004-03-01 20:24 ` Nigel Kukard
2004-03-01 20:47 ` Chris Wright
` (2 subsequent siblings)
3 siblings, 0 replies; 9+ messages in thread
From: Nigel Kukard @ 2004-03-01 20:24 UTC (permalink / raw)
To: Kevin P. Fleming; +Cc: linux-kernel
Nevermind if its right or wrong, it does not work in sysfs
-Nigel
On Mon, Mar 01, 2004 at 01:20:19PM -0700, Kevin P. Fleming wrote:
> Nigel Kukard wrote:
>
> >--- drivers/net/tun.c.old 2004-02-27 18:18:55.000000000 +0200
> >+++ drivers/net/tun.c 2004-02-27 18:19:02.000000000 +0200
> >@@ -605,7 +605,7 @@
> >
> > static struct miscdevice tun_miscdev = {
> > .minor = TUN_MINOR,
> >- .name = "net/tun",
> >+ .name = "tun",
> > .fops = &tun_fops
> > };
>
> This changed back and forth since the tun driver was added to the
> kernel; making this change will cause the devfs path to the tun node to
> change, and userspace applications expect it to be at /dev/misc/net/tun,
> whether that's right or wrong.
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [2.6.3] Sysfs breakage - tun.ko
2004-03-01 20:20 ` Kevin P. Fleming
2004-03-01 20:24 ` Nigel Kukard
@ 2004-03-01 20:47 ` Chris Wright
2004-03-01 21:08 ` Kevin P. Fleming
2004-03-02 0:32 ` H. Peter Anvin
2004-03-02 6:02 ` Nigel Kukard
3 siblings, 1 reply; 9+ messages in thread
From: Chris Wright @ 2004-03-01 20:47 UTC (permalink / raw)
To: Kevin P. Fleming; +Cc: Nigel Kukard, linux-kernel
* Kevin P. Fleming (kpfleming@backtobasicsmgmt.com) wrote:
> Nigel Kukard wrote:
>
> > --- drivers/net/tun.c.old 2004-02-27 18:18:55.000000000 +0200
> > +++ drivers/net/tun.c 2004-02-27 18:19:02.000000000 +0200
> > @@ -605,7 +605,7 @@
> >
> > static struct miscdevice tun_miscdev = {
> > .minor = TUN_MINOR,
> > - .name = "net/tun",
> > + .name = "tun",
> > .fops = &tun_fops
> > };
>
> This changed back and forth since the tun driver was added to the
> kernel; making this change will cause the devfs path to the tun node to
> change, and userspace applications expect it to be at /dev/misc/net/tun,
> whether that's right or wrong.
Why don't you use:
.devfs_name = "net/tun",
Or fix userspace apps? Or switch to udev with devfs rules emulated and a
rule for the tun/tap driver?
thanks,
-chris
--
Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [2.6.3] Sysfs breakage - tun.ko
2004-03-01 20:47 ` Chris Wright
@ 2004-03-01 21:08 ` Kevin P. Fleming
0 siblings, 0 replies; 9+ messages in thread
From: Kevin P. Fleming @ 2004-03-01 21:08 UTC (permalink / raw)
To: Chris Wright; +Cc: Nigel Kukard, linux-kernel
Chris Wright wrote:
> Why don't you use:
> .devfs_name = "net/tun",
That seems fine, if it will do the job.
> Or fix userspace apps? Or switch to udev with devfs rules emulated and a
> rule for the tun/tap driver?
This is a stable kernel series; these kinds of userspace-breakage
changes are not supposed to happen. Personally I have already started
migrating my systems to udev, but it will take some time to complete
that. Regardless, this would be a userspace-incompatible change if using
.devfs_name won't do the job.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [2.6.3] Sysfs breakage - tun.ko
2004-03-01 20:20 ` Kevin P. Fleming
2004-03-01 20:24 ` Nigel Kukard
2004-03-01 20:47 ` Chris Wright
@ 2004-03-02 0:32 ` H. Peter Anvin
2004-03-02 6:02 ` Nigel Kukard
3 siblings, 0 replies; 9+ messages in thread
From: H. Peter Anvin @ 2004-03-02 0:32 UTC (permalink / raw)
To: linux-kernel
Followup to: <40439B03.4000505@backtobasicsmgmt.com>
By author: "Kevin P. Fleming" <kpfleming@backtobasicsmgmt.com>
In newsgroup: linux.dev.kernel
>
> Nigel Kukard wrote:
>
> > --- drivers/net/tun.c.old 2004-02-27 18:18:55.000000000 +0200
> > +++ drivers/net/tun.c 2004-02-27 18:19:02.000000000 +0200
> > @@ -605,7 +605,7 @@
> >
> > static struct miscdevice tun_miscdev = {
> > .minor = TUN_MINOR,
> > - .name = "net/tun",
> > + .name = "tun",
> > .fops = &tun_fops
> > };
>
> This changed back and forth since the tun driver was added to the
> kernel; making this change will cause the devfs path to the tun node to
> change, and userspace applications expect it to be at /dev/misc/net/tun,
> whether that's right or wrong.
>
Bullsh*t.
User-space apps expect it to be /dev/net/tun, which is the documented
path for this device node. Anything else is a devfs bug (/dev/misc is
a devfs bug from beginning to end.)
-hpa
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [2.6.3] Sysfs breakage - tun.ko
2004-03-01 20:20 ` Kevin P. Fleming
` (2 preceding siblings ...)
2004-03-02 0:32 ` H. Peter Anvin
@ 2004-03-02 6:02 ` Nigel Kukard
2004-03-03 2:28 ` Chris Wright
3 siblings, 1 reply; 9+ messages in thread
From: Nigel Kukard @ 2004-03-02 6:02 UTC (permalink / raw)
To: Kevin P. Fleming; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1030 bytes --]
Nothing said solves the problem, the problem has got nothing to do with
devfs (only for compat reasons), the problem is that "net/tun" breaks
sysfs.
-Nigel
On Mon, Mar 01, 2004 at 01:20:19PM -0700, Kevin P. Fleming wrote:
> Nigel Kukard wrote:
>
> >--- drivers/net/tun.c.old 2004-02-27 18:18:55.000000000 +0200
> >+++ drivers/net/tun.c 2004-02-27 18:19:02.000000000 +0200
> >@@ -605,7 +605,7 @@
> >
> > static struct miscdevice tun_miscdev = {
> > .minor = TUN_MINOR,
> >- .name = "net/tun",
> >+ .name = "tun",
> > .fops = &tun_fops
> > };
>
> This changed back and forth since the tun driver was added to the
> kernel; making this change will cause the devfs path to the tun node to
> change, and userspace applications expect it to be at /dev/misc/net/tun,
> whether that's right or wrong.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [2.6.3] Sysfs breakage - tun.ko
2004-03-02 6:02 ` Nigel Kukard
@ 2004-03-03 2:28 ` Chris Wright
2004-03-04 5:25 ` Nigel Kukard
0 siblings, 1 reply; 9+ messages in thread
From: Chris Wright @ 2004-03-03 2:28 UTC (permalink / raw)
To: Nigel Kukard; +Cc: Kevin P. Fleming, linux-kernel
* Nigel Kukard (nkukard@lbsd.net) wrote:
>
> Nothing said solves the problem, the problem has got nothing to do with
> devfs (only for compat reasons), the problem is that "net/tun" breaks
> sysfs.
Yes, why does this not work? Keeps devfs legacy name, works fine with
udev, and makes proper dir in sysfs.
thanks,
-chris
===== drivers/net/tun.c 1.29 vs edited =====
--- 1.29/drivers/net/tun.c Sat Jan 10 16:09:09 2004
+++ edited/drivers/net/tun.c Tue Mar 2 12:05:30 2004
@@ -602,7 +602,8 @@
static struct miscdevice tun_miscdev = {
.minor = TUN_MINOR,
- .name = "net/tun",
+ .name = "tun",
+ .devfs_name = "net/tun",
.fops = &tun_fops
};
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [2.6.3] Sysfs breakage - tun.ko
2004-03-03 2:28 ` Chris Wright
@ 2004-03-04 5:25 ` Nigel Kukard
0 siblings, 0 replies; 9+ messages in thread
From: Nigel Kukard @ 2004-03-04 5:25 UTC (permalink / raw)
To: Chris Wright; +Cc: Kevin P. Fleming, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 851 bytes --]
Thanks bud!
Hopefully it'll get included in 2.6.4 ;)
On Tue, Mar 02, 2004 at 06:28:34PM -0800, Chris Wright wrote:
> * Nigel Kukard (nkukard@lbsd.net) wrote:
> >
> > Nothing said solves the problem, the problem has got nothing to do with
> > devfs (only for compat reasons), the problem is that "net/tun" breaks
> > sysfs.
>
> Yes, why does this not work? Keeps devfs legacy name, works fine with
> udev, and makes proper dir in sysfs.
>
> thanks,
> -chris
>
> ===== drivers/net/tun.c 1.29 vs edited =====
> --- 1.29/drivers/net/tun.c Sat Jan 10 16:09:09 2004
> +++ edited/drivers/net/tun.c Tue Mar 2 12:05:30 2004
> @@ -602,7 +602,8 @@
>
> static struct miscdevice tun_miscdev = {
> .minor = TUN_MINOR,
> - .name = "net/tun",
> + .name = "tun",
> + .devfs_name = "net/tun",
> .fops = &tun_fops
> };
>
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread