Commit Graph
20913 Commits
Author SHA1 Message Date
Kay Sievers e5d8ce91be builtin: blkid - add missing ID_FS_USAGE 2011-12-23 04:06:34 +01:00
Kay Sievers c7f9693c14 builtin: blkid - add missing newline 2011-12-23 03:40:31 +01:00
Kay Sievers 95de03a7a2 buildsys: disable tar.gz 2011-12-23 03:30:02 +01:00
Kay Sievers 009cc08c7b rules: do not preprocess 60-persistent-storage.rules 2011-12-23 03:23:37 +01:00
Kay Sievers 7c2dee4a4d rules: switch to built-in blkid 2011-12-23 03:21:53 +01:00
Kay Sievers c38a141b1f update blkid builtin 2011-12-23 03:16:56 +01:00
Kay Sievers e216e514cf build argv[] for builtin commands 2011-12-23 02:02:44 +01:00
Alan Stern db634679ad [PATCH[ udev: ata_id: Fix length of INQUIRY command
SCSI INQUIRY commands are 6 bytes long, not 12 bytes.
2011-12-23 00:33:09 +01:00
Lennart Poettering 6ad1d1c306 journald: enforce some syntax restrictions on field names sent from the client side 2011-12-22 00:35:04 +01:00
Kay Sievers aa29418a13 add builtin load/unload initializers 2011-12-21 23:10:56 +01:00
Lennart Poettering 440ee3665e journal: properly handle first inline bisect array entry 2011-12-21 22:32:52 +01:00
Kay Sievers 81dadce58f prepare builtins for blkid and kmod 2011-12-21 22:30:48 +01:00
Luis Felipe Strano Moraes f18f225cf1 Switch spawn_read to void and remove useless stores there.
The return value was never used and even if errors were found inside spawn_wait should still be called.
2011-12-21 11:47:51 -08:00
Lennart Poettering e4e61fdbed journal: add missing compress.[ch] 2011-12-21 19:00:10 +01:00
Lennart Poettering 0d43c6944b journalctl: add command line parsing 2011-12-21 18:59:56 +01:00
Lennart Poettering 72f597065c journalctl: add json, export, short and verbose output modes 2011-12-21 18:17:22 +01:00
Kay Sievers 28e490c945 make: do not (mis-)use the config file generator, create .xz tarball 2011-12-21 15:46:10 +01:00
Lennart Poettering 807e17f05e journal: add inline compression support with XZ 2011-12-21 02:40:59 +01:00
Ville Skyttä 636c7a44d5 man: spelling fix 2011-12-20 23:50:01 +01:00
Lennart Poettering bc85bfee87 journal: fix space reservation limit enforcement 2011-12-20 02:38:36 +01:00
Lennart Poettering 466ccd92e2 journal: fix matches 2011-12-20 00:38:14 +01:00
Michal Schmidt 8f7f7a1bd3 log: never block on syslog in PID 1
Use a non-blocking syslog socket if logging from PID 1.
If sendmsg fails with EAGAIN, fall back to kmsg or console only for the
current message. Next message will try syslog again.
2011-12-20 00:23:51 +01:00
Michal Schmidt 9721b19968 dbus: no sync D-Bus connection flushing
Blocking on D-Bus in a system manager could lead to deadlock.
2011-12-20 00:23:51 +01:00
Michal Schmidt cbd37330bc dbus: register to DBus asynchronously
Chen Jie observed and analyzed a deadlock. Assuming systemd-kmsg-syslogd
is already stopped, but rsyslogd is not started yet:
 1. systemd makes a synchronous call to dbus-daemon.
 2. dbus-daemon wants to write something to syslog.
 3. syslog needs to be started by systemd.
   ... but cannot be, because systemd is waiting in 1.

Solve this by avoiding synchronous D-Bus calls. I had to write an async
bus registration call. Interestingly, D-Bus authors anticipated this, in
documentation to dbus_bus_set_unique_name():
> The only reason to use this function is to re-implement the equivalent
> of dbus_bus_register() yourself. One (probably unusual) reason to do
> that might be to do the bus registration call asynchronously instead
> of synchronously.

Lennart's comments from IRC:
> though I think this doesn't fix the problem in its entirety
> simply because dbus_connection_open_private() itself is still synchronous
> i.e. the connect() call behind it is not async
> I think I listed that issue actually on some D-Bus todo list
> i.e. to make dbus_connection_get() fully async
> but that's going to be hard
> so your patch looks good

So it may not be perfect, but it's clearly an improvement.
I did not manage to reproduce the original deadlock with the patch.
2011-12-20 00:17:14 +01:00
Dan Walsh 81c3f1f6ab label: fix labeling of symbolic links 2011-12-19 23:58:58 +01:00
Lennart Poettering 50f20cfdb0 journal: implement inotify-based live logging logic 2011-12-19 22:35:46 +01:00
Lennart Poettering 76318284fc man: switch to UTF-8 output, to work around charset issues 2011-12-19 20:25:52 +01:00
Lennart Poettering 38c67e2a44 man: generate HTML instead of XHTML with XSL docbook to work around 'fsfunc' noise 2011-12-19 19:55:54 +01:00
Lennart Poettering 2e4a6ff47b hashmap: add hashmap_first_key() 2011-12-19 19:54:51 +01:00
Lennart Poettering 5079a105e7 man: extend sd-login(7) in regards to mixing D-Bus and synchronous library calls a bit 2011-12-19 17:40:31 +01:00
Lennart Poettering 595aae376f man: various updates 2011-12-19 14:42:59 +01:00
Lennart Poettering 01448ff92d man: add sd-login(7) page 2011-12-19 13:57:07 +01:00
Lennart Poettering c10eb7b02e build-sys: add rules for man page aliases 2011-12-19 13:25:00 +01:00
Lennart Poettering 559de12890 man: sd_readahead is not actually available in libsystemd-daemon 2011-12-19 13:19:01 +01:00
Lennart Poettering f0d2e205a2 man: build new man pages 2011-12-19 13:12:36 +01:00
Lennart Poettering a822cbfa2e sd-daemon: fix #include lines since we now ship a shared library 2011-12-19 13:11:42 +01:00
Lennart Poettering 0b3b020a17 man: document the sd-login interfaces 2011-12-19 03:02:17 +01:00
Lennart Poettering 2b0ba69bb1 journald: filter fields send from client starting with underscore 2011-12-17 01:36:47 +01:00
Michal Schmidt 0b1f4ae635 execute: fix losing of start timestamps
Start timestamps were always cleared before saving exit timestamps.
Fix it by removing a condition that makes no sense any way I look at it.
2011-12-17 01:33:40 +01:00
Lennart Poettering d0bbc21caa journal: introduce mandatory sd_journal_printf() priority parameter 2011-12-17 01:32:49 +01:00
Lennart Poettering cab8ac6083 journal: enforce limits on open journal files 2011-12-17 01:13:55 +01:00
Lennart Poettering 7f3e62571a journal: add native protocol to journald, and client side API to send journal messages 2011-12-17 00:56:34 +01:00
Michal Schmidt 4f025f4c4f man: fix misplaced remark in description of Sockets= 2011-12-17 00:40:21 +01:00
Michal Schmidt 777b87e702 tmpfiles: add 'z', like 'Z' but not recursive 2011-12-16 18:27:35 +01:00
Michal Schmidt 062e01bbdb tmpfiles: apply chown, chmod for 'Z' entries too
If changing ownership or permissions is not desired, they can be
configured to '-' or omitted entirely.
2011-12-16 18:04:54 +01:00
Michal Schmidt 18d01523c8 service: use 'syslog+console' for sysv_console
The default output to 'tty' for SysV service was making it hard to debug
problems because error messages were missing from syslog.
2011-12-16 17:40:41 +01:00
Michal Schmidt a37b560a63 man: mention that 'Z' ignores uid/gid/mode 2011-12-16 00:38:22 +01:00
Michal Schmidt 462d63db06 man: document 'Z' in tmpfiles 2011-12-16 00:31:21 +01:00
Michal Schmidt a8d8878329 tmpfiles: add RECURSIVE_RELABEL_PATH ('Z')
Feature requested by Dan Walsh.
2011-12-16 00:31:21 +01:00
Michal Schmidt 99e68c0b2d tmpfiles: separate a generic item glob processing function
Item glob processing will be useful for more than just removing.
2011-12-15 23:58:55 +01:00