summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2012-01-29main: don't force text mode in console_setup()Michal Schmidt
When systemd starts, plymouth may be already displaying progress graphically. Do not switch the console to text mode at that time. All other users of reset_terminal_fd() do the switch as before. This avoids a graphical glitch with plymouth, especially visible with vesafb, but could be also seen as a sub-second blink with radeon. https://bugzilla.redhat.com/show_bug.cgi?id=785548
2012-01-27logind: make sure we create /var/lib/systemd before using itLennart Poettering
2012-01-27pkg-config: export libexecdir, so that that gdm can use it to find the x ↵Lennart Poettering
server wrapper
2012-01-27socket: if SO_RCVBUFFORCE fails, fall back to SO_RCVBUF, to have at least a ↵Lennart Poettering
little effect
2012-01-27log: increase socket buffers for logging by defaultLennart Poettering
2012-01-27log: never delay logging if the log server is stuck, always drop messages ↵Lennart Poettering
quickly
2012-01-26mount: fix automount regressionMichal Schmidt
Tom Gundersen noticed a regression where comment=systemd.automount in fstab no longer prevented the adding of the After=foo.mount dependency into local-fs.target. He bisected it to commit 9ddc4a26. It turns out that clearing the default_dependencies flag is necessary after all, in order to avoid complementing of Wants= with After= in the target unit. We still want to add the dependencies on quota units and umount.target though.
2012-01-25virt: detect LXC+libvirt containersLennart Poettering
2012-01-25man: document systemd-cgtop toolLennart Poettering
2012-01-24login: fix multi-seat checkLennart Poettering
2012-01-24login: extend comments in multi-seat-xLennart Poettering
2012-01-23login: add multi-session X wrapperLennart Poettering
In preparation for https://bugzilla.gnome.org/show_bug.cgi?id=655380 we decided it's better to include the multi-seat X wrapper in systemd, rather than gdm. (Side effect: this makes this accessible for other DMs) This is a stop-gap for now, until X gins proper multi-seat graphics support at which point this code will go away without replacement.
2012-01-23journal: move journal TODO into main TODOLennart Poettering
2012-01-23util: use /dev/rtc symlink if possible before we go searching for a suitable ↵Lennart Poettering
device
2012-01-22login: move seat udev rules to login subdirKay Sievers
2012-01-22cgtop: add new cgtop toolLennart Poettering
2012-01-22tmpfiles: fix bad memory accessLennart Poettering
2012-01-22cgls: don't show kernel threads by defaultLennart Poettering
2012-01-21journal: systemd v38 fails to build on big-endiansDan Horák
Hi, during the builds for Fedora/s390x I've found that systemd v38 fails to build on big-endian platforms. ... make[2]: Entering directory `/root/systemd' CC src/journal/libsystemd_journal_la-sd-journal.lo src/journal/sd-journal.c: In function 'init_location': src/journal/sd-journal.c:69:22: error: incompatible types when initializing type 'long unsigned int' using type 'sd_id128_t' src/journal/sd-journal.c:69:20: error: incompatible types when assigning to type 'sd_id128_t' from type 'long unsigned int' make[2]: *** [src/journal/libsystemd_journal_la-sd-journal.lo] Error 1 I see the problem in using le64toh() on the 16 bytes boot_id structure in init_location() Please see http://s390.koji.fedoraproject.org/koji/taskinfo?taskID=544375 for a full build log and attachment for a proposed fix. With regards Dan
2012-01-21systemctl: don't show ln -s/rm output in 'install' mode if --quiet is passedLennart Poettering
2012-01-21util: open the first RTC that has hctosys=1 setLennart Poettering
2012-01-21readahead: don't monopolize IO when replayingLennart Poettering
2012-01-21dbus: export ControlGroupPersistent field on the bus againLennart Poettering
2012-01-20socket: don't fail the socket on ENOTCONNMichal Schmidt
Albert Strasheim reported a socket unit with Accept=yes was failing sometimes. getpeername() returns ENOTCONN if the connection was killed by TCP RST. The socket unit must not fail when it happens. Reproducer available at: https://bugzilla.redhat.com/show_bug.cgi?id=783344
2012-01-20dbus-execute: don't publish control_group_persistent on DBus for nowMichal Schmidt
Since the addition of ControlGroupPersistent, systemd is trivially killed by "systemctl status any.service". bus_property_append_bool must not be used for a tri-state int. Also, should it really "b", or do we want the tri-state nature to be seen? For now just comment out the buggy DBus property.
2012-01-20service: add missing pid file unwatch in the destructorMichal Schmidt
The pid file watch could outlive the service unit if a daemon-reload request came at the right time. The inotify event would then be delivered to who knows where. Fix it by unwatching in the service destructor. Further changes will be needed to preserve the state of the pid file watch across daemon-reload. For now let's just fix the crash observed by Jóhann Guðmundsson: Assertion 's->state == SERVICE_START || s->state == SERVICE_START_POST' failed at src/service.c:2609, function service_fd_event(). Aborting Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=783118
2012-01-19log: move #pragma around the functionMichal Schmidt
Koen reported errors with gcc 4.5.4 for arm: src/log.c:624:9: error: #pragma GCC diagnostic not allowed inside functions
2012-01-18persistant -> persistentKay Sievers
2012-01-18tmpfiles: support writing short strings to files, in order to support /sys ↵Lennart Poettering
manipulations at boot time, a la sysctl
2012-01-18manager: don't place units in the 'cpu' group when run as user instance, for nowLennart Poettering
2012-01-18journal: when sending journal data via file, place it in /dev/shm, to allow ↵Lennart Poettering
early boot operation, even if it sucks
2012-01-18exec: introduce ControlGroupPersistant= to make cgroups persistantLennart Poettering
2012-01-18journalctl: properly honour -n when -f is passed, tooLennart Poettering
2012-01-18tmpfiles: add support for creating symlinks, char/block device nodesLennart Poettering
2012-01-18logind: move X11 socketLennart Poettering
2012-01-18logind: simplify session_activate() a bitLennart Poettering
2012-01-18logind: allow to create multiple sessions on non-multi-session seats to deal ↵Lennart Poettering
with left-over sessions
2012-01-17util: fix ANSI sequence for red colorMichal Schmidt
Red turned green by mistake in commit c1072ea0.
2012-01-17log: make asserts cheaperMichal Schmidt
On my x86_64 this shrinks the size of .text by 53 KB (7 %).
2012-01-17log: remove useless variableMichal Schmidt
abort() never returns. Not even if the signal handler catches SIGABRT.
2012-01-17dbus-unit: make functions staticMichal Schmidt
The dbus_unit_append_*() functions are not referenced from outside anymore.
2012-01-16dbus: more efficient implementation of propertiesMichal Schmidt
The way the various properties[] arrays are initialized is inefficient: - only the .data members change at runtime, yet the whole arrays of properties with all the fields are constructed on the stack one by one by the code. - there's duplication, eg. the properties of "org.freedesktop.systemd1.Unit" are repeated in several unit types. Fix it by moving the information about properties into static const sections. Instead of storing the .data directly in the property, store a constant offset from a run-time base. The small arrays of struct BusBoundProperties bind together the constant information with the right runtime information (the base pointer). On my system the code shrinks by 60 KB, data increases by 10 KB.
2012-01-16unit: use safe downcasts, remove pointless castsMichal Schmidt
Always use the macros for downcasting. Remove a few obviously pointless casts.
2012-01-16unit: use the UNIT() macro consistentlyMichal Schmidt
The UNIT() macro upcasts from specific unit types to the base Unit. Use it everywhere, rather than accessing the 'meta' member directly.
2012-01-16unit: remove union UnitMichal Schmidt
Now that objects of all unit types are allocated the exact amount of memory they need, the Unit union has lost its purpose. Remove it. "Unit" is a more natural name for the base unit class than "Meta", so rename Meta to Unit. Access to members of the base class gets simplified.
2012-01-16unit: reduce heap usage for unit objectsMichal Schmidt
The storage of the unit objects on the heap is currently not very efficient. For every unit object we allocate a chunk of memory as large as the biggest unit type, although there are significant differences in the units' real requirements. pahole shows the following sizes of structs: 488 Target 496 Snapshot 512 Device 528 Path 560 Timer 576 Automount 1080 Socket 1160 Swap 1168 Service 1280 Mount Usually there aren't many targets or snapshots in the system, but Device is one of the most common unit types and for every one we waste 1280 - 512 = 768 bytes. Fix it by allocating only the right amount for the given unit type. On my machine (x86_64, with 39 LVM volumes) this decreases systemd's USS (unique set size) by more than 300 KB.
2012-01-16logind: downgrade login message to debugMichal Schmidt
The messages make people nervous. https://bugzilla.redhat.com/show_bug.cgi?id=727315
2012-01-14journal: drop privileges when storing coredumpLennart Poettering
2012-01-14journal: when show blob data show lengthLennart Poettering
2012-01-14util: support formatting eta and peta bytes with format_bytes()Lennart Poettering