summaryrefslogtreecommitdiff
path: root/src/swap.c
Commit message (Collapse)AuthorAge
* swap: replace failure boolean by result enumLennart Poettering2012-02-03
|
* unit: use safe downcasts, remove pointless castsMichal Schmidt2012-01-16
| | | | | Always use the macros for downcasting. Remove a few obviously pointless casts.
* unit: use the UNIT() macro consistentlyMichal Schmidt2012-01-16
| | | | | The UNIT() macro upcasts from specific unit types to the base Unit. Use it everywhere, rather than accessing the 'meta' member directly.
* unit: remove union UnitMichal Schmidt2012-01-16
| | | | | | | | | | 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.
* unit: reduce heap usage for unit objectsMichal Schmidt2012-01-16
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* let mount and swap units log to the configured defaultsMichal Schmidt2011-11-19
| | | | Related-to: https://bugzilla.redhat.com/show_bug.cgi?id=750032
* exec: optionally apply cgroup attributes to the cgroups we createLennart Poettering2011-08-20
|
* load-fragment: speed up parsing by using a perfect hash table with ↵Lennart Poettering2011-08-01
| | | | configuration settings built by gperf
* unit: use ESRCH as error when we don't find anybody to killLennart Poettering2011-07-13
|
* service: properly handle who argument on D-Bus kill callsLennart Poettering2011-07-12
|
* swap: ignore missing /proc/swapsMichael Olbrich2011-06-27
| | | | | Otherwise systemd reports "Failed to fully start up daemon: No such file or directory" when swap is disabled in the kernel.
* english: s/_per_/_by_/Lennart Poettering2011-06-21
|
* exec: hangup/reset/deallocate VTs in gettysLennart Poettering2011-05-18
| | | | | | | | | 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.
* manager: introduce IgnoreOnIsolate flag so that we can keep systemd-logger ↵Lennart Poettering2011-04-16
| | | | around when isolating
* src: our lord is coverityLennart Poettering2011-03-31
|
* exec: drop process group kill mode since it has little use and confuses the userLennart Poettering2011-03-29
|
* def: centralize definition of default timeout in one placeLennart Poettering2011-03-17
|
* kill: always send SIGCONT after SIGTERMLennart Poettering2011-03-03
| | | | | When we kill a process to terminate it make sure to send SIGCONT to ensure it is unpaused and processes the signal.
* swap: handle "nofail" from fstabKay Sievers2011-02-15
|
* mount,swap: properly add dependencies to logger if neededLennart Poettering2011-02-15
|
* exec: introduce global defaults for the standard output of servicesLennart Poettering2011-02-15
|
* clang: fix some issues found with clang-analyzerLennart Poettering2011-01-22
|
* systemctl: highlight failed processes in systemctl statusLennart Poettering2011-01-20
|
* service: when reloading a service fails don't fail the entire service but ↵Lennart Poettering2011-01-20
| | | | just the reload job
* execute: make sending of SIGKILL on shutdown optionalLennart Poettering2011-01-18
|
* swap: order file-based swap devices after remount-rootfsLennart Poettering2010-11-22
|
* cgroup: by default, duplicate service cgroup in the cpu hierarchyLennart Poettering2010-11-17
|
* manager: always pull 'following' units into transactionLennart Poettering2010-11-14
|
* unit: get rid of gnoreDependencyFailure= instead treat ConflictedBy= as ↵Lennart Poettering2010-10-29
| | | | weaker counterpart of Conflicts=, similar to Wants= vs. Requires=
* swap: there's no reason not order swap after sysinit, so drop itLennart Poettering2010-10-28
|
* swap: add only swaps listed in /etc/fstab automatically to swap.target, ↵Lennart Poettering2010-10-26
| | | | others should be added via .wants/ links
* swap: add default cgroup to swap exec envLennart Poettering2010-10-26
|
* systemctl: introduce systemctl killLennart Poettering2010-10-22
|
* swap: listen for POLLPRI events on /proc/swaps if availableLennart Poettering2010-10-18
|
* swap: major rework, use /sbin/swapon for setting up swaps, fix merging of ↵Lennart Poettering2010-10-12
| | | | aliased swap disks
* manager: add missing second part of s/maintenance/failed/Matthew Miller2010-08-31
|
* mount: imply noauto for mount points configured with native mount filesLennart Poettering2010-08-25
|
* mount: rework automatic mounting to follow the 'nofail' option in fstabLennart Poettering2010-08-25
|
* mount: add global configuration options for handling of auto mountsLennart Poettering2010-08-25
|
* dbus: follow standardized fdo PropertiesChanged signal specLennart Poettering2010-08-20
|
* emacs: make sure nobody accidently adds tabs to our sourcesLennart Poettering2010-08-14
|
* swap: properly enter maintenance mode on failureLennart Poettering2010-08-09
|
* systemctl: introduce reset-maintenance commandLennart Poettering2010-07-19
|
* mount: add automatic start ordering dependencies for mountsLennart Poettering2010-07-12
|
* dbus: make errors reported via D-Bus more usefulLennart Poettering2010-07-08
|
* manager: optionally print status updates to console on bootLennart Poettering2010-07-07
|
* unit: simplify things a little by introducing API to add two dependencies in ↵Lennart Poettering2010-07-03
| | | | one step
* unit: shorten active state enums to make systemctl output nicerLennart Poettering2010-07-01
|
* unit: add new abstracted maintenance state for unitsLennart Poettering2010-07-01
|
* unit: get rid of various unnecessary castsLennart Poettering2010-06-19
|