summaryrefslogtreecommitdiff
path: root/src/swap.c
AgeCommit message (Collapse)Author
2012-04-11move libsystemd_core.la sources into core/Kay Sievers
2012-02-03swap: replace failure boolean by result enumLennart Poettering
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.
2011-11-19let mount and swap units log to the configured defaultsMichal Schmidt
Related-to: https://bugzilla.redhat.com/show_bug.cgi?id=750032
2011-08-20exec: optionally apply cgroup attributes to the cgroups we createLennart Poettering
2011-08-01load-fragment: speed up parsing by using a perfect hash table with ↵Lennart Poettering
configuration settings built by gperf
2011-07-13unit: use ESRCH as error when we don't find anybody to killLennart Poettering
2011-07-12service: properly handle who argument on D-Bus kill callsLennart Poettering
2011-06-27swap: ignore missing /proc/swapsMichael Olbrich
Otherwise systemd reports "Failed to fully start up daemon: No such file or directory" when swap is disabled in the kernel.
2011-06-21english: s/_per_/_by_/Lennart Poettering
2011-05-18exec: hangup/reset/deallocate VTs in gettysLennart Poettering
Explicitly disconnect all clients from a VT when a getty starts/finishes (requires TIOCVHANGUP, available in 2.6.29). Explicitly deallocate getty VTs in order to flush scrollback buffer. Explicitly reset terminals to a defined state before spawning getty.
2011-04-16manager: introduce IgnoreOnIsolate flag so that we can keep systemd-logger ↵Lennart Poettering
around when isolating
2011-03-31src: our lord is coverityLennart Poettering
2011-03-29exec: drop process group kill mode since it has little use and confuses the userLennart Poettering
2011-03-17def: centralize definition of default timeout in one placeLennart Poettering
2011-03-03kill: always send SIGCONT after SIGTERMLennart Poettering
When we kill a process to terminate it make sure to send SIGCONT to ensure it is unpaused and processes the signal.
2011-02-15swap: handle "nofail" from fstabKay Sievers
2011-02-15mount,swap: properly add dependencies to logger if neededLennart Poettering
2011-02-15exec: introduce global defaults for the standard output of servicesLennart Poettering
2011-01-22clang: fix some issues found with clang-analyzersystemd/v17Lennart Poettering
2011-01-20systemctl: highlight failed processes in systemctl statusLennart Poettering
2011-01-20service: when reloading a service fails don't fail the entire service but ↵Lennart Poettering
just the reload job
2011-01-18execute: make sending of SIGKILL on shutdown optionalLennart Poettering
2010-11-22swap: order file-based swap devices after remount-rootfsLennart Poettering
2010-11-17cgroup: by default, duplicate service cgroup in the cpu hierarchyLennart Poettering
2010-11-14manager: always pull 'following' units into transactionLennart Poettering
2010-10-29unit: get rid of gnoreDependencyFailure= instead treat ConflictedBy= as ↵Lennart Poettering
weaker counterpart of Conflicts=, similar to Wants= vs. Requires=
2010-10-28swap: there's no reason not order swap after sysinit, so drop itLennart Poettering
2010-10-26swap: add only swaps listed in /etc/fstab automatically to swap.target, ↵Lennart Poettering
others should be added via .wants/ links
2010-10-26swap: add default cgroup to swap exec envLennart Poettering
2010-10-22systemctl: introduce systemctl killLennart Poettering
2010-10-18swap: listen for POLLPRI events on /proc/swaps if availableLennart Poettering
2010-10-12swap: major rework, use /sbin/swapon for setting up swaps, fix merging of ↵Lennart Poettering
aliased swap disks
2010-08-31manager: add missing second part of s/maintenance/failed/Matthew Miller
2010-08-25mount: imply noauto for mount points configured with native mount filesLennart Poettering
2010-08-25mount: rework automatic mounting to follow the 'nofail' option in fstabLennart Poettering
2010-08-25mount: add global configuration options for handling of auto mountsLennart Poettering
2010-08-20dbus: follow standardized fdo PropertiesChanged signal specLennart Poettering
2010-08-14emacs: make sure nobody accidently adds tabs to our sourcesLennart Poettering
2010-08-09swap: properly enter maintenance mode on failureLennart Poettering
2010-07-19systemctl: introduce reset-maintenance commandLennart Poettering
2010-07-12mount: add automatic start ordering dependencies for mountsLennart Poettering
2010-07-08dbus: make errors reported via D-Bus more usefulLennart Poettering
2010-07-07manager: optionally print status updates to console on bootLennart Poettering
2010-07-03unit: simplify things a little by introducing API to add two dependencies in ↵Lennart Poettering
one step
2010-07-01unit: shorten active state enums to make systemctl output nicerLennart Poettering
2010-07-01unit: add new abstracted maintenance state for unitsLennart Poettering