diff options
author | Karel Zak | 2013-12-10 15:49:49 +0100 |
---|---|---|
committer | Karel Zak | 2013-12-10 16:40:31 +0100 |
commit | 36c370cbf1481aa8724dff8b7b7fec4a8ba9930b (patch) | |
tree | ee58ac627274c438bac2cfffb3e9060c79aa62a6 /misc-utils/findmnt.c | |
parent | libmount: add efivarfs to the list of pseudo filesystems (diff) | |
download | kernel-qcow2-util-linux-36c370cbf1481aa8724dff8b7b7fec4a8ba9930b.tar.gz kernel-qcow2-util-linux-36c370cbf1481aa8724dff8b7b7fec4a8ba9930b.tar.xz kernel-qcow2-util-linux-36c370cbf1481aa8724dff8b7b7fec4a8ba9930b.zip |
fstrim: add --all to discard all filesystem
* read /proc/self/mountinfo to get filesystems
* ignore net and pseudo filesystems
* ignore unaccessible filesystems (over mounted by another FS)
* read disk sysfs queue/discard_granularity to detect is discard support
* call FITRIM ioctl
* silently ignore EOPNOTSUPP (for example LUKS without discard) and ENOTTY
(for example vfat) errors
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/findmnt.c')
0 files changed, 0 insertions, 0 deletions