summaryrefslogtreecommitdiff
path: root/src/mount.c
Commit message (Collapse)AuthorAge
* mount: fix assertionLennart Poettering2012-03-13
| | | | https://bugzilla.redhat.com/show_bug.cgi?id=768523
* mount: properly check return for mount_add_*Dave Reisner2012-03-06
| | | | | Previously, mount_load_etc_fstab() could never fail for reasons other than a setmntent() or allocation failure.
* fix sparse warningsFrederic Crozat2012-03-05
|
* mount: adjust dependencies for remote filesystemsMichal Schmidt2012-02-07
| | | | | | | | | | | | | | | | | Currently remote mounts automatically get: After=remote-fs-pre.target network.target remote-fs-pre.target is already After=network.target. Just make sure remote-fs-pre.target is pulled in by remote-fs.target if any remote filesystems are configured. For the mount units it is then sufficient to get: After=remote-fs-pre.target Later NetworkManager will hook its NM-wait-online.service into remote-fs-pre.target.wants in order to remove the need for the administrator to enable the service manually when he has any remote filesystems. https://bugzilla.redhat.com/show_bug.cgi?id=787314
* automount: convert failure boolean to enumLennart Poettering2012-02-03
|
* mount: replace failure boolean by enumLennart Poettering2012-02-03
|
* mount: fix automount regressionMichal Schmidt2012-01-26
| | | | | | | | | | | 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.
* 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.
* mount: fix quotaMichal Schmidt2012-01-14
| | | | | | | | | | | quotacheck.service and quotaon.service were not pulled in for fstab mounts. Fix it by not clearing the default_dependencies flag. The root filesystem may have quotas too, so don't check for "/" there. No need to have duplicate code for adding dependencies on umount.target. https://bugzilla.redhat.com/show_bug.cgi?id=773431
* unit: properly update references to units which are mergedLennart Poettering2012-01-06
| | | | | | | | | | | When we merge units that some kind of object points to, those pointers might become invalidated, and needs to be updated. Introduce a UnitRef struct which links up all the unit references, to ensure corrected references. At the same time, drop configured_sockets in the Service object, and replace it by proper UNIT_TRIGGERS resp. UNIT_TRIGGERED_BY dependencies, which allow us to simplify a lot of code.
* let mount and swap units log to the configured defaultsMichal Schmidt2011-11-19
| | | | Related-to: https://bugzilla.redhat.com/show_bug.cgi?id=750032
* mount: order remote mounts after both network.target and remote-fs-pre.targetLennart Poettering2011-11-01
| | | | | | | | Since remote-fs-pre.target is optional we cannot count on it to order remote mounts after network.target, so let's add that order explicitly in addition to remote-fs-pre.target. https://bugzilla.redhat.com/show_bug.cgi?id=749940
* units: introduce local-fs-pre.target and remote-fs-pre.targetLennart Poettering2011-10-11
| | | | | | This hook target enables services to order themselves between network.target and remote mounts, which is needed for GFS2 and similar systems.
* mount: pull in quota tools from fstab lines with 'quota' option, tooLennart Poettering2011-09-21
| | | | https://bugzilla.redhat.com/show_bug.cgi?id=736360
* mount: fix parsing of prio valueLennart Poettering2011-08-31
| | | | https://bugzilla.redhat.com/show_bug.cgi?id=722803
* 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
|
* 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.
* mount,crypto: rework meaning of noauto/nofailLennart Poettering2011-04-20
|
* mount: properly parse timeouts options in the middle of the stringLennart Poettering2011-04-19
|
* mount: make device timeout configurableLennart Poettering2011-04-16
|
* manager: introduce IgnoreOnIsolate flag so that we can keep systemd-logger ↵Lennart Poettering2011-04-16
| | | | around when isolating
* mount: don't pull in stdio logger for root mount unitLennart Poettering2011-04-13
|
* mount: block creation of mount units for API file systemsLennart Poettering2011-04-05
|
* src: our lord is coverityLennart Poettering2011-03-31
|
* quota: do not pull in quota tools for mounts that do not originate in ↵Lennart Poettering2011-03-30
| | | | neither /etc/fstab nor fragment files
* exec: drop process group kill mode since it has little use and confuses the userLennart Poettering2011-03-29
|
* use /run instead of /dev/.runKay Sievers2011-03-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of the /dev/.run trick we have currently implemented, we decided to move the early-boot runtime dir to /run. An existing /var/run directory is bind-mounted to /run. If /var/run is already a symlink, no action is taken. An existing /var/lock directory is bind-mounted to /run/lock. If /var/lock is already a symlink, no action is taken. To implement the directory vs. symlink logic, we have a: ConditionPathIsDirectory= now, which is used in the mount units. Skipped mount unit in case of symlink: $ systemctl status var-run.mount var-run.mount - Runtime Directory Loaded: loaded (/lib/systemd/system/var-run.mount) Active: inactive (dead) start condition failed at Fri, 25 Mar 2011 04:51:41 +0100; 6min ago Where: /var/run What: /run CGroup: name=systemd:/system/var-run.mount The systemd rpm needs to make sure to add something like: %pre mkdir -p -m0755 /run >/dev/null 2>&1 || : or it needs to be added to filesystem.rpm. Udev -git already uses /run if that exists, and is writable at bootup. Otherwise it falls back to the current /dev/.udev. Dracut and plymouth need to be adopted to switch from /dev/.run to run too. Cheers, Kay
* mount: pull in quota services from local mountpoints with usr/grpquota optionsAndrey Borzenkov2011-03-18
|
* def: centralize definition of default timeout in one placeLennart Poettering2011-03-17
|
* mount: support less cumbersome x-systemd-xxx mount optionsLennart Poettering2011-03-08
|
* 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.
* mount: make sure network mounts are ordered after network.targetLennart Poettering2011-02-21
|
* 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
|
* mount: ignore if an fsck is requested for a bind mount, so that we don't ↵Lennart Poettering2011-01-21
| | | | wait for the bind 'device' to show up
* automount: fix segfault when shutting downLennart Poettering2011-01-21
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=32076
* 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
|
* cgroup: by default, duplicate service cgroup in the cpu hierarchyLennart Poettering2010-11-17
|
* split mount_point_is_api() and mount_point_ignore()Kay Sievers2010-11-11
| | | | | | | | | | | | | | | 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.
* cryptsetup: minimal cryptsetup unit generatorLennart Poettering2010-11-10
|
* mount: don't pull in nofail mounts by default, but use them if they are aroundLennart Poettering2010-10-29
|