Age | Commit message (Collapse) | Author |
|
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(?).
|
|
|
|
man page style fixes
present the tiny udev in bold font :)
|
|
support subdirectory creation/removal for NAME="/devfs/is/crazy/video0"
create parent subdirs for device node if needed
remove subdirs when last node is removed
|
|
set uid/gid of node specified in udev.permissions
only numeric id's are supported cause we can't resolve with
klibc or libc before real /etc is mounted
|
|
|
|
|
|
|
|
|
|
I integrated udev with Fedora Core. The main piece is simply building
/udev on boot, since we don't have an initramfs yet. We should also
clear out /udev on shutdown, for /udev directories mounted on persistent
media.
The attached script goes in /etc/init.d
Then do "chkconfig --add udev"
And the rest is handled automatically. I made it for Fedora but it will
probably work, with little change, on any Linux system.
Right now it only does sysfs-based discovery of block and tty devices,
since those are the only types of devices I have on my system. There is
a TODO in the script where we would add the other device types.
|
|
|
|
Still can't seem to build both klibc and glibc versions from same makefile :(
|
|
Fixup path for kernel includes when building with klibc.
klibc expects the symlink klibc/linux to point to a relatively up
to date tree, use -Iklibc/linux/include to make linux/ and asm/
includes resolve properly, as these won't exist in the regular
klibc/klibc/include location.
|
|
|
|
|
|
|
|
OK, I fixed that bug you hinted at earlier in my previous
sleep_for_dev() patch. I am sure you fixed it, but here we go
nonetheless, just in case.
I actually changed it up a bit. It is probably faster to count down
from SECONDS_TO_WAIT_FOR_DEV than count up.
I also made the lone 'path' argument const, since it can be.
Some other misc. bits, too.
|
|
|
|
|
|
|
|
|
|
probably got it wrong too...
|
|
|
|
|
|
|
|
This fixes problem of libsysfs and tdb getting build with different gcc options
as the rest of udev.
|
|
|
|
|
|
|
|
|
|
|
|
Not hooked up to the build yet.
|
|
|
|
|
|
|
|
|
|
namedev.c is still a mess, that's up next after testing...
|
|
and udev.config
the namedev name didn't really make much sense anymore...
|
|
|
|
and a patch for namdev.c comments + debug
o correct 'device device'
o correct permission file to config file
|
|
Thanks to Kay Sievers <kay@vrfy.org> for pointing this out.
|
|
here a new patch for the man page:
o namdev.permissions added
o corrected a few typos
o corrected text for config line format.
owner, group mode are only in namedev.permissions
(don't know what i was dreaming, while i wrote this :))
|
|
Another one of those "trivial patches so everything must be good"
sleep_for_dev() isn't exported or defined in a header, so it can be
marked 'static'
|
|
|
|
Now we will timeout properly.
|
|
|
|
config variables
This will make running tests a lot simpler.
|
|
|
|
|
|
Here's the patch applying the latest libsysfs.
- adds the latest libsysfs code to udev
* new code includes dlist implementation, a generic linked list
implementation. Needed our own because LGPL
* rearranged structures
* provided more functions for accessing directory and attributes
- gets rid of ->directory->path references in namedev.c
- replaces sysfs_get_value_from_attributes with sysfs_get_classdev_attr
|