diff options
author | dsteklof@us.ibm.com <dsteklof@us.ibm.com> | 2003-11-12 05:37:24 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:06:23 -0700 |
commit | 8d8172514d8c29cd5b2c51a0825268b823eb8294 (patch) | |
tree | 8b1ede69955e047462e41475e8b8803b922650d5 /libsysfs/libsysfs.h | |
parent | e308ebb70f9d1e389577c2a8829cf2d210cd6a19 (diff) |
[PATCH] patch for libsysfs sysfs directory handling
Here's a quick patch to:
1) Add an environment variable "SYSFS_PATH" that libsysfs will check
for when getting mount point before searching system's sysfs mount
point.
2) A quick fix to sysfs_get_link where the bug was.
I have tested this out with libsysfs and with udev. I couldn't test
with klibc because I haven't got the tree to build with klibc without
my changes either. I made the link but get an error finding
linux/linits.h. I will figure that out.
Please have a look at the patch. If it's agreeable, please test it. I
really want to add some generic path manipulation functions for the
sysfs_get_link error, rather than my patch's hack. But, I haven't had
time yet to do that. You really sounded like you needed this for
testing, so I'm sending it out to you. I should probably add a
function to set the env variable(?).
Diffstat (limited to 'libsysfs/libsysfs.h')
-rw-r--r-- | libsysfs/libsysfs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libsysfs/libsysfs.h b/libsysfs/libsysfs.h index ccb9898cb5..b3ffc467d0 100644 --- a/libsysfs/libsysfs.h +++ b/libsysfs/libsysfs.h @@ -40,6 +40,7 @@ #define SYSFS_DRIVERS_NAME "drivers" #define SYSFS_NAME_ATTRIBUTE "name" #define SYSFS_UNKNOWN "unknown" +#define SYSFS_PATH_ENV "SYSFS_PATH" /* Some "block" subsystem specific #defines */ #define SYSFS_QUEUE_NAME "queue" |