Re: [2.6.3] Sysfs breakage - tun.ko

From: Nigel Kukard
Date: Thu Mar 04 2004 - 00:27:47 EST


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@xxxxxxxx) 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: pgp00000.pgp
Description: PGP signature