Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-11-01 | journald: never block when sending messages on NOTIFY_SOCKET socket | Lennart Poettering | |
Otherwise we might run into deadlocks, when journald blocks on the notify socket on PID 1, and PID 1 blocks on IPC to dbus-daemon and dbus-daemon blocks on logging to journald. Break this cycle by making sure that journald never ever blocks on PID 1. Note that this change disables support for event loop watchdog support, as these messages are sent in blocking style by sd-event. That should not be a big loss though, as people reported frequent problems with the watchdog hitting journald on excessively slow IO. Fixes: #1505. | |||
2015-10-27 | util-lib: move inotify-related definitions to fs-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: split out allocation calls into alloc-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: split out globbing related calls into glob-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: split out printf() helpers to stdio-util.h | Lennart Poettering | |
2015-10-27 | io-util.h: move iovec stuff from macro.h to io-util.h | Lennart Poettering | |
2015-10-27 | util-lib: split out syslog-related calls into syslog-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: move /proc/cmdline parsing code to proc-cmdline.[ch] | Lennart Poettering | |
2015-10-27 | src/basic: rename audit.[ch] → audit-util.[ch] and capability.[ch] → ↵ | Lennart Poettering | |
capability-util.[ch] The files are named too generically, so that they might conflict with the upstream project headers. Hence, let's add a "-util" suffix, to clarify that this are just our utility headers and not any official upstream headers. | |||
2015-10-27 | util-lib: move more locale-related calls to locale-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: move string table stuff into its own string-table.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: move a number of fs operations into fs-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: split out file attribute calls to chattr-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: split xattr-related calls into xattr-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: introduce dirent-util.[ch] for directory entry calls | Lennart Poettering | |
Also, move a couple of more path-related functions to path-util.c. | |||
2015-10-27 | util-lib: split out resource limits related calls into rlimit-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: move more file I/O related calls into fileio.[ch] | Lennart Poettering | |
2015-10-27 | util: remove path_get_parent(), in favour of dirname_malloc() | Lennart Poettering | |
We don't need two functions that do essentialy the same, hence drop path_get_parent(), and stick to dirname_malloc(), but move it to path-util.[ch]. | |||
2015-10-27 | util-lib: split out hex/dec/oct encoding/decoding into its own file | Lennart Poettering | |
2015-10-27 | util-lib: split string parsing related calls from util.[ch] into parse-util.[ch] | Lennart Poettering | |
2015-10-26 | Merge pull request #1676 from poettering/util-lib-2 | Tom Gundersen | |
split up util.[ch] into more pieces, and other stuff | |||
2015-10-26 | journal: add missing include | Tom Gundersen | |
2015-10-26 | Merge pull request #1681 from ssahani/journal | Lennart Poettering | |
journald-server: port to extract_first_word | |||
2015-10-26 | journald-server: port to extract_first_word | Susant Sahani | |
2015-10-26 | util-lib: split out user/group/uid/gid calls into user-util.[ch] | Lennart Poettering | |
2015-10-26 | util-lib: split out IO related calls to io-util.[ch] | Lennart Poettering | |
2015-10-25 | Merge pull request #1654 from poettering/util-lib | Tom Gundersen | |
Various changes to src/basic/ | |||
2015-10-25 | util-lib: split out fd-related operations into fd-util.[ch] | Lennart Poettering | |
There are more than enough to deserve their own .c file, hence move them over. | |||
2015-10-25 | Merge pull request #1663 from poettering/journal-compress-fix | Zbigniew Jędrzejewski-Szmek | |
journal: fix error handling when compressing journal objects | |||
2015-10-24 | util-lib: split our string related calls from util.[ch] into its own file ↵ | Lennart Poettering | |
string-util.[ch] There are more than enough calls doing string manipulations to deserve its own files, hence do something about it. This patch also sorts the #include blocks of all files that needed to be updated, according to the sorting suggestions from CODING_STYLE. Since pretty much every file needs our string manipulation functions this effectively means that most files have sorted #include blocks now. Also touches a few unrelated include files. | |||
2015-10-24 | util: split out escaping code into escape.[ch] | Lennart Poettering | |
This really deserves its own file, given how much code this is now. | |||
2015-10-24 | path-util: unify how we process paths specified on the command line | Lennart Poettering | |
Let's introduce a common function that makes relative paths absolute and warns about any errors while doing so. | |||
2015-10-24 | util-lib: get_current_dir_name() can return errors other than ENOMEM | Lennart Poettering | |
get_current_dir_name() can return a variety of errors, not just ENOMEM, hence don't blindly turn its errors to ENOMEM, but return correct errors in path_make_absolute_cwd(). This trickles down into a couple of other functions, some of which receive unrelated minor fixes too with this commit. | |||
2015-10-24 | journal: irrelevant coding style fixes | Lennart Poettering | |
2015-10-24 | journal: fix error handling when compressing journal objects | Lennart Poettering | |
Let's make sure we handle compression errors properly, and don't misunderstand an error for success. Also, let's actually compress things if lz4 is enabled. Fixes #1662. | |||
2015-10-24 | Merge pull request #1659 from vcaputo/journal_verify_envalid | Lennart Poettering | |
journal: s/Envalid/Invalid/ | |||
2015-10-23 | journal: s/Envalid/Invalid/ | Vito Caputo | |
2015-10-23 | Merge pull request #1653 from keszybz/lz4-compress-time | Lennart Poettering | |
Limit test-compress-benchmark to approx. 12 s of runtime | |||
2015-10-23 | test-compress-benchmark: properly initialize buffer | Zbigniew Jędrzejewski-Szmek | |
We were compressing unitialized memory, which should not result in any problems, but is inelegant. | |||
2015-10-23 | test-compress-benchmark: limit default runtime to 2 seconds per subtest | Zbigniew Jędrzejewski-Szmek | |
If both lz4 and xz are enabled, this results in a limit of 2×3×2 s ~= 12 s runtime. Previous implementation started with really small buffer sizes. When combined with a short time limit this resulteded in abysmal results for xz. It seems that the initialization overead is really significant for small buffers. Since xz will not be used by default anymore, this does not seem worth fixing. Instead buffer sizes are changed to run a pseudo-random non-repeating pattern. This should allow reasonable testing for all buffer sizes. For testing, both runtime and the buffer size seed can be specified on the command line. Sufficiently large runtime allows all buffer sizes up to 1MB to be tested. | |||
2015-10-22 | journalctl: clarify -q option | Evgeny Vereshchagin | |
-q suppresses info messages too | |||
2015-10-19 | journald: make sure r is always initialized | Lennart Poettering | |
2015-10-19 | journal: fix bad memory freeing | Lennart Poettering | |
2015-10-19 | tree-wide: add more void casts for various syscall invocations | Lennart Poettering | |
2015-10-15 | Merge pull request #1527 from keszybz/lz4 | Lennart Poettering | |
Using lz4 frame api for coredump files | |||
2015-10-14 | compress: return errors without logging, do not fake errno | Zbigniew Jędrzejewski-Szmek | |
Logging for compression and decompression is assymetrical on purpose: if compiled without some type of compression, those compression code paths should never be invoked. OTOH, it is possible to encounter unsupported format on decompression, so leave those log_debug statements in, to make it easier to diagnose stuff. | |||
2015-10-14 | compress: fix mmap error handling | Zbigniew Jędrzejewski-Szmek | |
2015-10-13 | Merge pull request #1548 from evverx/journalctl-catalog-ops-fixes | Lennart Poettering | |
Fix journalctl --dump-catalog, journalctl --list-catalog | |||
2015-10-13 | Merge pull request #1542 from keszybz/journal-audit-optional | Lennart Poettering | |
Make journald audit socket maskable | |||
2015-10-13 | journalctl: introduce short options for --since and --until | Jan Synacek | |
Fixes #1514. |