Re: [2.6.3] Sysfs breakage - tun.ko

From: Chris Wright
Date: Tue Mar 02 2004 - 21:31:10 EST


* 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
};

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/