1. 15 Apr, 2013 1 commit
  2. 05 Apr, 2013 2 commits
    • Zbigniew Jędrzejewski-Szmek's avatar
      Add _cleanup_globfree_ · c84a9488
      Zbigniew Jędrzejewski-Szmek authored
      Fixes a memleak in error path in exec_context_load_environment.
      c84a9488
    • Zbigniew Jędrzejewski-Szmek's avatar
      Use initalization instead of explicit zeroing · b92bea5d
      Zbigniew Jędrzejewski-Szmek authored
      Before, we would initialize many fields twice: first
      by filling the structure with zeros, and then a second
      time with the real values. We can let the compiler do
      the job for us, avoiding one copy.
      
      A downside of this patch is that text gets slightly
      bigger. This is because all zero() calls are effectively
      inlined:
      
      $ size build/.libs/systemd
               text    data     bss     dec     hex filename
      before 897737  107300    2560 1007597   f5fed build/.libs/systemd
      after  897873  107300    2560 1007733   f6075 build/.libs/systemd
      
      … actually less than 1‰.
      
      A few asserts that the parameter is not null had to be removed. I
      don't think this changes much, because first, it is quite unlikely
      for the assert to fail, and second, an immediate SEGV is almost as
      good as an assert.
      b92bea5d
  3. 04 Apr, 2013 1 commit
  4. 03 Apr, 2013 1 commit
  5. 31 Mar, 2013 1 commit
  6. 29 Mar, 2013 1 commit
  7. 14 Mar, 2013 1 commit
  8. 13 Mar, 2013 1 commit
  9. 04 Mar, 2013 2 commits
  10. 11 Feb, 2013 1 commit
    • Lennart Poettering's avatar
      binfmt,tmpfiles,modules-load,sysctl: rework the various early-boot services... · fabe5c0e
      Lennart Poettering authored
      binfmt,tmpfiles,modules-load,sysctl: rework the various early-boot services that work on .d/ directories
      
      This unifies much of the logic behind them:
      
      - All four will now ofllow the rule that the earlier file and earlier
        assignment in the .d/ directories wins. Before, sysctl was the only
        outlier, where the later setting always won.
      
      - All four now support getopt() and --help on the command line.
      
      - All four can now handle specification of configuration file names on
        the command line to apply. The tools will automatically find them, and
        apply them. Previously only tmpfiles could do that. This is useful for
        %post scripts in RPMs and suchlike.
      
      - This fixes various error path issues in conf_files_list()
      fabe5c0e
  11. 08 Feb, 2013 1 commit
  12. 25 Jan, 2013 1 commit
    • Michal Sekletar's avatar
      tmpfiles: introduce type X · 78a92a5a
      Michal Sekletar authored
      Type X will exclude path itself from clean-up. However, if the path is a
      directory systemd-tmpfiles will clean-up its content.
      
      In contrast to type x, where path is ignored completely, type X needs some
      Age parameter. In order to determine Age parameter, we will look for config
      entries of type d or D and pick the best match.  Best match is either
      exact match or longest prefix match.
      78a92a5a
  13. 03 Jan, 2013 1 commit
  14. 23 Oct, 2012 2 commits
  15. 28 Sep, 2012 1 commit
  16. 19 Sep, 2012 1 commit
  17. 16 Sep, 2012 1 commit
    • Dave Reisner's avatar
      tmpfiles: use write(2) for the 'w' action · 54693d9b
      Dave Reisner authored
      This resolves problems with filesystems which do not implement the
      aio_write file operation. In this case, the kernel will fall back using
      a loop writing technique for each pointer in a received iovec. The
      result is strange errors in dmesg such as:
      
      [   31.855871] elevator: type  not found
      [   31.856262] elevator: switch to
      [   31.856262]  failed
      
      It does not make sense to implement a synchronous aio_write method for
      sysfs as this isn't a real filesystem where a reasonable use case for
      using writev exists, nor is there an expectation that tmpfiles will be
      used to write more data than can be reasonably written in a single write
      syscall.
      
      In addition, some sysfs attrs are currently buggy and will NOT reject
      the second write with the newline, causing the sysfs value to be zeroed
      out. This of course should be fixed in the kernel regardless of any
      wrongdoing in userspace, but this simple change makes us immune to such
      a bug.
      
      This change means that we do not write a trailing newline by default, as
      the expected use case of 'w' is for sysfs and procfs. In exchange, honor
      C-style backslash escapes so that if the newline is really needed, the
      user can add it.
      54693d9b
  18. 12 Sep, 2012 2 commits
  19. 06 Sep, 2012 1 commit
  20. 26 Jul, 2012 1 commit
  21. 25 Jul, 2012 1 commit
  22. 20 Jul, 2012 1 commit
  23. 16 Jul, 2012 1 commit
  24. 13 Jul, 2012 1 commit
  25. 10 Jul, 2012 1 commit
  26. 03 Jul, 2012 1 commit
  27. 20 Jun, 2012 2 commits
  28. 14 Jun, 2012 1 commit
  29. 10 Jun, 2012 3 commits
  30. 31 May, 2012 1 commit
  31. 15 May, 2012 1 commit
  32. 08 May, 2012 1 commit
  33. 07 May, 2012 1 commit