summaryrefslogtreecommitdiffstats
path: root/sys-utils/fstrim.service.in
Commit message (Collapse)AuthorAgeFilesLines
* fstrim: fix systemd service protectionKarel Zak2019-07-221-1/+1
| | | | | | | | ProtectHome=yes makes /home inaccessible, but we need to open the directories (mountpoints) read-only. Addresses: https://github.com/karelzak/util-linux/issues/824 Signed-off-by: Karel Zak <kzak@redhat.com>
* fstrim: add --quiet option to suppress error messagesSami Kerola2019-05-071-1/+1
| | | | | | | | | | | | | When fstrim interacts with NTFS it result can be error reporting bad file descriptor. That seems to be a bug in NTFS. While waiting driver to get on top of the issue and be commonly available lets add to fstrim option to make it be more silent about errno 9 aka EBADF, Bad file descriptor. Reported-by: https://github.com/moviuro Proposed-by: Dave Reisner <dreisner@archlinux.org> Reference: https://bugs.archlinux.org/task/62288 Addresses: https://github.com/karelzak/util-linux/issues/789 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fstrim: Add hardening settings to fstrim.serviceAndreas Henriksson2018-11-221-0/+10
| | | | | | | | | | | | | | This limits what the fstrim process has access to when it runs. PrivateUsers can't be enabled because of: "If this mode is enabled, all unit processes are run without privileges in the host user namespace[...]" Further improving this with additional option or making things even tighter is most likely possible. Signed-off-by: Andreas Henriksson <andreas@fatal.se> Signed-off-by: Karel Zak <kzak@redhat.com>
* fstrim: Add Documentation key to fstrim.serviceAndreas Henriksson2018-11-211-0/+1
|
* fstrim: use long options in systemd service fileSami Kerola2018-11-211-1/+1
| | | | | | Long options are more user friendly. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fstrim: update .service to follow /etc/fstabKarel Zak2018-08-081-2/+2
| | | | | | | | | | | Replace -a with -A to discard mounted filesystems from /etc/fstab. The original -a forces fstrim to try to discard all filesystems, including for example manually mounted removable media. It seems better for widely used .service unit to follow /etc/fstab. Addresses: https://github.com/karelzak/util-linux/issues/673 Signed-off-by: Karel Zak <kzak@redhat.com>
* fstrim: add -v to the systemd serviceKarel Zak2016-10-181-1/+1
| | | | | | | | | It seems to be good idea to have more verbose output in the log files for weekly fstrim execution. The verbose adds details (one line) for each filesystem. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1337304 Signed-off-by: Karel Zak <kzak@redhat.com>
* fstrim: add systemd unitsThomas Bächler2014-04-071-0/+6
This adds a timer and a service for systemd that runs fstrim -a once a day. The Persistent=true option used will only work on systemd 212 or newer.