1. 15 Apr, 2013 1 commit
  2. 05 Apr, 2013 1 commit
    • 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. 31 Mar, 2013 1 commit
  4. 20 Jan, 2013 1 commit
  5. 16 Jan, 2013 2 commits
  6. 07 Dec, 2012 3 commits
    • Michal Schmidt's avatar
      shutdown, umount: use verbs consistently · 735e0712
      Michal Schmidt authored
      Mounts are "unmounted".
      Swaps are "deactivated", not "turned off" nor "disabled".
      Loop and DM devices are "detached", not "deleted".
      
      Especially the deleting sounded a bit scary.
      735e0712
    • Michal Schmidt's avatar
      shutdown, umount: logging improvements · bce93b7a
      Michal Schmidt authored
      In bugreports about hangs during the late shutdown we are often missing
      important information - what were we trying to unmount/detach when it hung.
      
      Instead of printing what we successfully unmounted, print what we are
      going to unmount/detach. And add messages to mark the completion of
      categories (mount/swap/loop/DM).
      bce93b7a
    • Michal Schmidt's avatar
      umount: fix check for DM changed · c6784066
      Michal Schmidt authored
      delete_dm() returns 0 on success. The check for "r > 0" was likely
      a copy&paste error from the loopback code where "r > 0" makes sense.
      c6784066
  7. 28 Nov, 2012 2 commits
    • Hermann Gausterer's avatar
      shutdown: fix typo · 5a6f9d23
      Hermann Gausterer authored
      5a6f9d23
    • Tom Gundersen's avatar
      shutdown: don't consider umounting of / and /usr failed · 14088340
      Tom Gundersen authored
      In the words of Homer: If you don't try, you can't fail.
      
      This is a revert of 9279749b.
      
      It used to be necessary to consider the umounting failed to make sure /
      and /usr were remounted read-only, but that is no longer necessary as
      everything is now remounted read-only anyway.
      
      Moreover, this avoids a warning at shutdown saying a filesystem was not
      unmounted. As the umounting of / is never attempted there was no
      corresponding warning message saying which fs that failed. This caused some
      spurious bug-reports from concerned users.
      
      Cc: Michael Biebl <biebl@debian.org>
      14088340
  8. 16 Nov, 2012 1 commit
  9. 04 Sep, 2012 1 commit
  10. 13 Aug, 2012 1 commit
  11. 30 May, 2012 1 commit
  12. 08 May, 2012 1 commit
  13. 12 Apr, 2012 5 commits
  14. 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
  15. 06 Mar, 2012 1 commit
  16. 23 Sep, 2011 1 commit
  17. 04 Jul, 2011 3 commits
  18. 01 Jul, 2011 1 commit
  19. 16 Mar, 2011 1 commit
  20. 15 Mar, 2011 1 commit
  21. 14 Mar, 2011 1 commit
  22. 06 Jan, 2011 1 commit
  23. 11 Nov, 2010 1 commit
    • Kay Sievers's avatar
      split mount_point_is_api() and mount_point_ignore() · 57f2a956
      Kay Sievers authored
      We should not handle the ignore list as API mounts, as
      systemd itself never touches them.
      
      On Thu, Nov 11, 2010 at 10:34, Andreas Jaeger <aj@novell.com> wrote:
      >
      > I noticed for some time that systemd-remount-api-vfs is in the
      > failed state and found now the following in the log files
      >
      > systemd-remount-api-vfs[467]: /bin/mount for /proc/bus/usb exited with exit status 32.
      > systemd-remount-api-vfs[467]: mount: /proc/bus/usb not mounted already, or bad option
      > systemd[1]: systemd-remount-api-vfs.service: main process exited, code=exited, status=1
      > systemd[1]: Unit systemd-remount-api-vfs.service entered failed state.
      57f2a956
  24. 25 Oct, 2010 1 commit
  25. 19 Oct, 2010 1 commit
  26. 14 Oct, 2010 3 commits
  27. 13 Oct, 2010 2 commits