2005-09-02 07:04:22

by Rolf Eike Beer

[permalink] [raw]
Subject: [PATCH 0/2] driverfs is dead

This little patch series removes some references to driverfs, which is called
sysfs for a long time.

No code changes, this is all in comments. Please apply,

Eike


Attachments:
(No filename) (165.00 B)
(No filename) (189.00 B)
Download all attachments

2005-09-02 07:03:30

by Rolf Eike Beer

[permalink] [raw]
Subject: [PATCH 1/2] remove driverfs references from include/linux/cpu.h and net/sunrpc/rpc_pipe.c

This patch is against 2.6.10, but still applies cleanly. It's just
s/driverfs/sysfs/ in these two files.

Signed-off-by: Rolf Eike Beer <[email protected]>

--- linux-2.6.10/include/linux/cpu.h 2005-01-01 17:55:38.000000000 +0100
+++ linux-2.6.10/include/linux/cpu.h.fixed 2005-01-07 13:55:36.167681848 +0100
@@ -8,7 +8,7 @@
* Basic handling of the devices is done in drivers/base/cpu.c
* and system devices are handled in drivers/base/sys.c.
*
- * CPUs are exported via driverfs in the class/cpu/devices/
+ * CPUs are exported via sysfs in the class/cpu/devices/
* directory.
*
* Per-cpu interfaces can be implemented using a struct device_interface.
--- linux-2.6.10/net/sunrpc/rpc_pipe.c 2005-01-01 17:55:50.000000000 +0100
+++ linux-2.6.10/net/sunrpc/rpc_pipe.c.fixed 2005-01-07 14:01:05.373634936 +0100
@@ -3,7 +3,7 @@
*
* Userland/kernel interface for rpcauth_gss.
* Code shamelessly plagiarized from fs/nfsd/nfsctl.c
- * and fs/driverfs/inode.c
+ * and fs/sysfs/inode.c
*
* Copyright (c) 2002, Trond Myklebust <[email protected]>
*

2005-09-02 07:04:23

by Rolf Eike Beer

[permalink] [raw]
Subject: [PATCH 2/2] remove driverfs references from init/do_mounts.c

This patch is against 2.6.10, but still applies cleanly. It's just
s/driverfs/sysfs/ in this file.

Signed-off-by: Rolf Eike Beer <[email protected]>

--- linux-2.6.10/init/do_mounts.c 2004-12-24 22:34:31.000000000 +0100
+++ linux-2.6.10/init/do_mounts.c.fixed 2005-01-07 13:42:02.406392368 +0100
@@ -127,10 +127,10 @@ fail:
* used when disk name of partitioned disk ends on a digit.
*
* If name doesn't have fall into the categories above, we return 0.
- * Driverfs is used to check if something is a disk name - it has
+ * Sysfs is used to check if something is a disk name - it has
* all known disks under bus/block/devices. If the disk name
- * contains slashes, name of driverfs node has them replaced with
- * bangs. try_name() does the actual checks, assuming that driverfs
+ * contains slashes, name of sysfs node has them replaced with
+ * bangs. try_name() does the actual checks, assuming that sysfs
* is mounted on rootfs /sys.
*/