summaryrefslogtreecommitdiff
path: root/libudev
AgeCommit message (Collapse)Author
2010-05-20udevd: create standard symlinks and handle /lib/udev/devicesKay Sievers
2010-05-14libudev: add O_CLOEXECKay Sievers
2010-05-12reset process priority before executing RUN+=Kay Sievers
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=581235
2010-05-07libudev: add documentation for recently added functionsKay Sievers
2010-04-23export udev_device_get_tags_list_entry()Kay Sievers
2010-04-23export tag functionsKay Sievers
2010-04-23libudev: accept NULL in udev_device_get_tags_list_entry()Kay Sievers
2010-04-23delete old tags when configuration changesKay Sievers
2010-04-22fix logic on-demand loading logic for db and ueventKay Sievers
2010-04-22add TAG= to improve event filtering and device enumerationKay Sievers
2010-04-21more readlink buffer size handlingKay Sievers
2010-04-13remove "ignore_remove" optionKay Sievers
2010-04-13remove "all_partitions" optionKay Sievers
We can not predict the major/minor of non-existing devices: $ grep . /sys/class/block/sd*/dev /sys/class/block/sda1/dev:259:524288 /sys/class/block/sda2/dev:259:262144 /sys/class/block/sda3/dev:259:786432 /sys/class/block/sda4/dev:259:131072 /sys/class/block/sda/dev:259:0 /sys/class/block/sdb/dev:259:655360 /sys/class/block/sdc/dev:259:393216 If this functionality is still needed for some broken hardware, it needs to be solved with a tool not part of the udev package. Because such option is unreliable and unsafe to use.
2010-03-25libudev: update documentationKay Sievers
2010-03-18add LGPL COPYING to libudev and GUdevKay Sievers
2010-03-17libudev: add udev_device_new_from_environment()Kay Sievers
2010-03-11libudev: docs - .gitignore backup filesKay Sievers
2010-03-10libbudev-private: rename udev_list_entry_get_flag()Kay Sievers
2010-03-02Increase UTIL_LINE_SIZE from 2048 to 16384David Zeuthen
Recent udisks versions, for LVM2 integration, ships with probers that produce very long lines such as UDISKS_LVM2_PV_VG_PV_LIST= uuid=98lyZl-Ya7U-p26Z-Ia7b-xf8u-xZqP-jc4njb;size=2000397795328;allocated_size=2000397795328 uuid=iFs0cM-sxCF-ceQK-hZl1-kbwo-ZTjq-gSewQR;size=2000397795328;allocated_size=2000397795328 [...] e.g. roughly 100 bytes per LVM2 physical volume for each LVM2 PV encountered. Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-03-02Use UTIL_LINE_SIZE, not UTIL_PATH_SIZE to truncate propertiesDavid Zeuthen
Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-03-02Decrease buffer size when advancing past NUL byteDavid Zeuthen
Otherwise we'll overflow the buffer if space is tight. Also add a comment explaining this. Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-02-17libudev: export udev_monitor_set_receive_buffer_size()Scott James Remnant
This function is useful for anything that's likely to be running alongside udevd during cold-plugging, and is using libudev to receive the events. It makes little sense for it to be private, or to require other software to relearn how to adjust the buffer size. Signed-off-by: Scott James Remnant <scott@ubuntu.com>
2010-01-13libudev: device - create db file atomicallyKay Sievers
We need to prevent that libudev parses half-written database files. Also for "change" events, we need to make sure, that database files always exist to be read by libudev, and that they are not first deleted before they are re-created.
2010-01-07work around gtk-doc which breaks distcheckKay Sievers
2010-01-07libudev: doc - add symbols to sections.txtKay Sievers
2009-12-30libudev: enumerate - fix move_later logicThomas de Grenier de Latour
The move_later_prefix variable was reset to zero on each loop iteration, and thus the move_later entry (if any) was not added right after changing to another syspath prefix, but rather after exiting the enumeration loop.
2009-12-25remove UDEV_RUN environment variableKay Sievers
It handles only RUN but not IMPORT and PROGRAM. There is no sane way to suppress program execution. Most important programs run with IMPORT these days. Also events can no longer suppressed with the libudev netlink messages, so UDEV_RUN does nothing useful and is just inconsistent.
2009-12-25fix typo in log message priority handlingKay Sievers
2009-12-24remove remaining support for CONFIG_SYSFS_DEPRECATEDKay Sievers
2009-12-21Speed up udev_enumerate_scan_*Martin Pitt
Check property match earlier, to avoid lots of readlink() and stat() calls when we check property matches.
2009-12-15remove remaining support for CONFIG_SYSFS_DEPRECATEDKay Sievers
2009-12-15libudev: wrap in extern "C" block for C++Daniel Elstner
When libudev.h is included from C++ code, wrap the declarations in an extern "C" { ... } block. This tells the C++ compiler that symbols are exported with C linkage and no name-mangling.
2009-12-08util_unlink_secure(): chmod() before chown()Kay Sievers
2009-12-03libudev: doc - use #NULLKay Sievers
2009-12-03udev_device_get_parent_with_subsystem_devtype(): Clarify documentationMartin Pitt
devtype can be NULL, in which case it is ignored for matching.
2009-10-30udevd: queue-export - remove retry loopAlan Jenkins
These retry loops are required where create_path() could race with delete_path(). But only the main udevd process writes to the queue, so no races will happen here. Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2009-10-30use CLOEXEC flags instead of fcntl()Kay Sievers
2009-10-28break loops if util_create_path() returns errorKay Sievers
Dangling symlinks in path components return -ENOENT. Do not retry to create the file in a loop in such case.
2009-10-20libudev: allow to store negative values in the udev databasePeter Rajnoha
2009-09-22util_run_program: *really* restore signal mask before executing event RUN ↵Scott James Remnant
commands The previous patch was almost, but not quite, correct. Rather than restoring the signal mask it actually tried to make an even more restrictive signal mask (had SIGALRM been blocked when udevd started, anyway). Fix it harder. Signed-off-by: Scott James Remnant <scott@ubuntu.com>
2009-09-10put util_create_path() and file creastion in a retry loopKay Sievers
On 8/29/09, Florian Zumbiehl <florz@florz.de> wrote: > Could it happen that > util_create_path() and util_delete_path() > do run in parallel for > the same directory? After all, util_create_path() > does handle > the case where creation of the directory happens in parallel > to it running, so it doesn't seem all that unlikely to me ...
2009-09-10reorder create_path() and node/link creation to be called in a direct sequenceKay Sievers
2009-09-09simplify "symlink name stack"Kay Sievers
With well defined and kernel-supplied node names, we no longer need to support a possible stack of conflicting symlinks and node names. Only symlinks with identical names can be claimed by multiple devices. This shrinks the former /dev/.udev/names/ significantly. Also the /dev/{block,char}/MAJ:MIN" links are excluded from the name stack - they are unique and can not conflict.
2009-09-08fix randonm findings from llvm-clang-analyzerKay Sievers
Thanks to Lennart for the log file!
2009-09-08util_run_program(): fix possible buffer overflow #2Florian Zumbiehl
I'm not sure how likely it is for UTIL_PATH_SIZE to have an odd value (maybe it has right now? :-), but I guess making this universally correct doesn't hurt ...
2009-09-07util_run_program(): skip multiple spaces in argv creationKay Sievers
2009-09-07util_run_program: restore signal mask before executing event RUN commandsJeremy Kerr
External programs triggered by events (via RUN=) will inherit udev's signal mask, which is set to block all but SIGALRM. For most utilities, this is OK, but if we start daemons from RUN=, we run into trouble (especially as SIGCHLD is blocked). This change saves the original sigmask when udev starts, and restores it just before we exec() the external command. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2009-09-07udev_queue_get_seqnum_sequence_is_finished(): fix possible file handle leakFlorian Zumbiehl
2009-09-01udev_util_encode_string(): fix possible buffer overflowFlorian Zumbiehl
2009-09-01libudev-util.c: get_sys_link() - return error for empty link targetKay Sievers