]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fstrim: add --listed-in <file[:file ..]>
authorKarel Zak <kzak@redhat.com>
Fri, 22 May 2020 12:39:31 +0000 (14:39 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 22 May 2020 12:48:31 +0000 (14:48 +0200)
commit9995da01e0a17f0a381cd691fb9c371cf4a6b4f4
treec0183b438474481fd38eb15c2e767a38a42dfedc
parent9a293ca078d817323e5a46f78c5f7205ac614602
fstrim: add --listed-in <file[:file ..]>

This new option works like --all but it allows to specify multiple
files with filesystems to make fstrim configuration more portable
between distributions. For example:

 fstrim --listed-in /etc/fstab:/proc/self/mountinfo

forces fstrim to try fstab and if unsuccessful than try mountinfo.

Addresses: https://github.com/karelzak/util-linux/issues/1019
Signed-off-by: Karel Zak <kzak@redhat.com>
bash-completion/fstrim
sys-utils/fstrim.8
sys-utils/fstrim.c
sys-utils/fstrim.service.in