summaryrefslogtreecommitdiff
path: root/src/libudev/libudev-hwdb.c
Commit message (Collapse)AuthorAge
* udev hwdb: Change error message regarding missing hwdb.bin back to debug.Colin Guthrie2014-11-05
| | | | | | | | | When used in an initramfs, it's expected that the hwdb.bin file is not present (it makes for a very large initramfs otherwise). While it's nice to tell the user about this, as it's not strictly speaking an error we really shouldn't be so forceful in our reporting.
* udev hwdb: Support shipping pre-compiled database in system imagesMartin Pitt2014-10-28
| | | | | | | | | | | | | | | | In some cases it is preferable to ship system images with a pre-generated binary hwdb database, to avoid having to build it at runtime, avoid shipping the source hwdb files, or avoid storing large binary files in /etc. So if hwdb.bin does not exist in /etc/udev/, fall back to looking for it in UDEVLIBEXECDIR. This keeps the possibility to add files to /etc/udev/hwdb.d/ and re-generating the database which trumps the one in /usr/lib. Add a new --usr flag to "udevadm hwdb --update" which puts the database into UDEVLIBEXECDIR. Adjust systemd-udev-hwdb-update.service to not generate the file in /etc if we already have it in /usr.
* Fix misuse of uint64_t as size_tZbigniew Jędrzejewski-Szmek2014-08-03
| | | | They have different size on 32 bit, so they are really not interchangable.
* Remove unnecessary casts in printfsZbigniew Jędrzejewski-Szmek2014-05-15
| | | | No functional change expected :)
* libudev: hwdb - use libudev not systemd loggingKay Sievers2013-12-10
|
* libudev: always return NULL in _unref() APIsLennart Poettering2013-11-20
| | | | | | | | | | | | | Returning anything else but NULL would suggest the caller's reference might still be valid, but it isn't, because the caller just invoked _unref() after all. This turns the return value into a typesafe shortcut that allows unreffing and resetting a reference in one line. In contrast to solutions for this which take a pointer to a pointer to accomplish the same this solution is just syntactic sugar the developer can make use of but doesn't have to, and this is particularly useful when immediately unreffing objects returned by function calls.
* libudev: fix hwdb validation to look for the *new* fileKay Sievers2013-08-15
|
* hwdb: remove support for (not fully implemented) conditional propertiesKay Sievers2013-07-01
|
* Use stdint.h macros instead of casts to print uint64_t valuesZbigniew Jędrzejewski-Szmek2013-06-10
| | | | Casts are visually heavy, and can obscure unwanted truncations.
* udev: remove HWDB_BINKay Sievers2013-02-07
|
* libudev: hwdb: add missing endianess conversionEric Benoit2012-12-11
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=58067
* hwdb: use $(localstatedir)/lib/udev/hwdb.bin for the binary databaseZbigniew Jędrzejewski-Szmek2012-11-16
| | | | | | It's not configuration, so it doesn't belong in udev. Also, remove the catalog when uninstalling udev.
* udev: hwdb - properly handle a missing databaseKay Sievers2012-11-15
| | | | | | | | | | | | | | | | On Thu, Nov 15, 2012 at 5:05 PM, Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> wrote: > Something like this appeared with latest git: > > Nov 15 16:55:46 fedora-15 systemd-udevd[334]: worker [364] terminated by signal 11 (Segmentation fault) > Nov 15 16:55:46 fedora-15 [387]: Process 364 (systemd-udevd) dumped core. > Nov 15 16:55:46 fedora-15 systemd-udevd[334]: worker [364] failed while handling '/devices/virtual/net/lo' > Nov 15 16:55:46 fedora-15 systemd-udevd[334]: worker [360] terminated by signal 11 (Segmentation fault) > Nov 15 16:55:46 fedora-15 systemd-udevd[334]: worker [360] failed while handling '/devices/pci0000:00/0000:00:03.0/virtio0/net > Nov 15 16:55:46 fedora-15 [389]: Process 360 (systemd-udevd) dumped core. > > Core was generated by usr/lib/systemd/systemd-udevd'. > Program terminated with signal 11, Segmentation fault. > #0 0x0000000000423c87 in udev_hwdb_get_properties_list_entry (hwdb=0x0, modalias=0x7fffbcd155f0
* libudev: update copyright headersKay Sievers2012-11-12
|
* udev: use usec_t and now()Kay Sievers2012-11-12
|
* libudev: hwdb - cleanup list before getting new propertiesKay Sievers2012-10-28
|
* Tweak TODOZbigniew Jędrzejewski-Szmek2012-10-28
|
* libudev: import hwdb and export lookup interfaceKay Sievers2012-10-27