1. 11 Jul, 2014 1 commit
  2. 27 Apr, 2014 1 commit
  3. 26 Apr, 2014 3 commits
  4. 09 May, 2013 1 commit
  5. 17 Apr, 2013 1 commit
    • Harald Hoyer's avatar
      journal: add one more level on top with AND · cd34b3c6
      Harald Hoyer authored
      When using "-p" and "-b" in combination with "-u", the output is not
      what you would expect. The reason is the sd_journal_add_disjunction()
      call in add_matches_for_unit() and add_matches_for_user_unit(), which
      adds two ORs without taking the other conditions to every OR.
      
      Adding another level on top with AND and sd_journal_add_conjunction()
      solves the problem.
      
      Output before:
      
      $ journalctl -o short-monotonic -ab -p 0 -u sshd.service
      
      -- Reboot --
      [    3.216305] lenovo systemd[1]: Starting OpenSSH server daemon...
      -- Reboot --
      [    3.168666] lenovo systemd[1]: Starting OpenSSH server daemon...
      [    3.169639] lenovo systemd[1]: Started OpenSSH server daemon.
      [36285.635389] lenovo systemd[1]: Stopped OpenSSH server daemon.
      -- Reboot --
      [   10.838657] lenovo systemd[1]: Starting OpenSSH server daemon...
      [   10.913698] lenovo systemd[1]: Started OpenSSH server daemon.
      [ 6881.035183] lenovo systemd[1]: Stopped OpenSSH server daemon.
      -- Reboot --
      [    6.636228] lenovo systemd[1]: Starting OpenSSH server daemon...
      [    6.662573] lenovo systemd[1]: Started OpenSSH server daemon.
      [    6.681148] lenovo sshd[397]: Server listening on 0.0.0.0 port 22.
      [    6.681379] lenovo sshd[397]: Server listening on :: port 22.
      
      As we see, the output is from _every_ boot and priority 0 is not taken
      into account.
      
      Output after patch:
      
      $ journalctl -o short-monotonic -ab -p 0 -u sshd.service
      -- Logs begin at Sun 2013-02-24 20:54:44 CET, end at Tue 2013-03-19 14:58:21 CET. --
      
      Increasing the priority:
      
      $ journalctl -o short-monotonic -ab -p 6 -u sshd.service
      -- Logs begin at Sun 2013-02-24 20:54:44 CET, end at Tue 2013-03-19 14:59:12 CET. --
      [    6.636228] lenovo systemd[1]: Starting OpenSSH server daemon...
      [    6.662573] lenovo systemd[1]: Started OpenSSH server daemon.
      [    6.681148] lenovo sshd[397]: Server listening on 0.0.0.0 port 22.
      [    6.681379] lenovo sshd[397]: Server listening on :: port 22.
      cd34b3c6
  6. 16 Apr, 2013 1 commit
    • Lennart Poettering's avatar
      macro: rework how we define cleanup macros · dfb33a97
      Lennart Poettering authored
      There's now a generic _cleanup_ macro with an argument. The macros for
      specific types are now defined using this macro, and in the header files
      where they belong.
      
      All cleanup handlers are now inline functions.
      dfb33a97
  7. 04 Apr, 2013 1 commit
  8. 22 Mar, 2013 1 commit
    • Zbigniew Jędrzejewski-Szmek's avatar
      journalctl: be smarter about journal error checks · 6fe391c5
      Zbigniew Jędrzejewski-Szmek authored
      There are many ways in which we can get those checks wrong, so it is
      better to warn and then error out on a real access failure.
      
      The error messages are wrapped to <80 lines, because their primary
      use is to be displayed in the terminal, and it is easier to read them
      this way. Reading them in the journal can be a bit trickier, but
      this is a bug in logs-show.c.
      6fe391c5
  9. 20 Nov, 2012 1 commit
    • Lennart Poettering's avatar
      journal: by default do not decompress dat objects larger than 64K · 93b73b06
      Lennart Poettering authored
      This introduces a new data threshold setting for sd_journal objects
      which controls the maximum size of objects to decompress. This is
      relieves the library from having to decompress full data objects even
      if a client program is only interested in the initial part of them.
      
      This speeds up "systemd-coredumpctl" drastically when invoked without
      parameters.
      93b73b06
  10. 26 Oct, 2012 1 commit
    • Lennart Poettering's avatar
      journal: provide an API that allows client to figure out whether they need to... · 85210bff
      Lennart Poettering authored
      journal: provide an API that allows client to figure out whether they need to recheck the journal manually for changes in regular intervals
      
      Network file systems generally do not offer inotify() that would work
      across the network. We hence cannot rely on inotify() exclusiely in
      those case. Provide an API to determine these cases, and suggest doing
      manual regular rechecks.
      
      Note that this is not complete yet, as we need to rescan journal dirs on
      network file systems explicitly to find new/removed files
      85210bff
  11. 18 Oct, 2012 1 commit
    • Lennart Poettering's avatar
      journal: add ability to list values a specified field can take in all entries of the journal · 3c1668da
      Lennart Poettering authored
      The new 'unique' API allows listing all unique field values that a field
      specified by a field name can take in all entries of the journal. This
      allows answering queries such as "What units logged to the journal?",
      "What hosts have logged into the journal?", "Which boot IDs have logged
      into the journal?".
      
      Ultimately this allows implementation of tools similar to lastlog based
      on journal data.
      
      Note that listing these field values will not work for journal files
      created with older journald, as the field values are not indexed in
      older files.
      3c1668da
  12. 09 Oct, 2012 2 commits
  13. 16 Aug, 2012 1 commit
  14. 19 Jul, 2012 2 commits
    • Shawn Landden's avatar
      use #pragma once instead of foo*foo #define guards · c2f1db8f
      Shawn Landden authored
       #pragma once has been "un-deprecated" in gcc since 3.3, and is widely supported
      in other compilers.
      
      I've been using and maintaining (rebasing) this patch for a while now, as
      it annoyed me to see #ifndef fooblahfoo, etc all over the place,
      almost arrogant about the annoyance of having to define all these names to
      perform a commen but neccicary functionality, when a completely superior
      alternative exists.
      
      I havn't sent it till now, cause its kindof a style change, and it is bad
      voodoo to mess with style that has been established by more established
      editors. So feel free to lambast me as a crazy bafoon.
      
      v2 - preserve externally used headers
      c2f1db8f
    • Lennart Poettering's avatar
  15. 16 Jul, 2012 1 commit
  16. 15 Jul, 2012 1 commit
    • Kay Sievers's avatar
      journal: avoid re-definition of enums for older gcc versions · dbfd9122
      Kay Sievers authored
      On Sun, Jul 15, 2012 at 2:00 PM, Koen Kooi <koen@dominion.thruhere.net> wrote:
      > | In file included from src/journal/sd-journal.c:37:0:
      > | src/journal/journal-internal.h:47:3: error: redefinition of typedef 'MatchType'
      > | src/journal/journal-internal.h:36:24: note: previous declaration of 'MatchType' was here
      > | src/journal/journal-internal.h:67:3: error: redefinition of typedef 'LocationType'
      > | src/journal/journal-internal.h:37:27: note: previous declaration of 'LocationType' was here
      dbfd9122
  17. 12 Jul, 2012 1 commit
  18. 10 Jul, 2012 1 commit
    • Lennart Poettering's avatar
      journal: rework directory enumeration/watch logic · a963990f
      Lennart Poettering authored
      There's now sd_journal_new_directory() for watching specific journal
      directories. This is exposed in journalctl -D.
      
      sd_journal_wait() and sd_journal_process() now return whether changes in
      the journal are invalidating or just appending.
      
      We now create inotify kernel watches only when we actually need them
      a963990f
  19. 11 Apr, 2012 1 commit
    • Lennart Poettering's avatar
      relicense to LGPLv2.1 (with exceptions) · 5430f7f2
      Lennart Poettering authored
      We finally got the OK from all contributors with non-trivial commits to
      relicense systemd from GPL2+ to LGPL2.1+.
      
      Some udev bits continue to be GPL2+ for now, but we are looking into
      relicensing them too, to allow free copy/paste of all code within
      systemd.
      
      The bits that used to be MIT continue to be MIT.
      
      The big benefit of the relicensing is that closed source code may now
      link against libsystemd-login.so and friends.
      5430f7f2
  20. 22 Mar, 2012 1 commit
  21. 05 Jan, 2012 1 commit
  22. 30 Dec, 2011 1 commit