]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
findmnt: (man) write about -Q,--filter option
authorMasatake YAMATO <yamato@redhat.com>
Tue, 18 Jun 2024 15:14:05 +0000 (00:14 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Wed, 19 Jun 2024 13:14:22 +0000 (22:14 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/findmnt.8.adoc

index 941eb6c2c3c55e8ae36f75d11f7d035f96924aa2..f29f965421e658a96e5a55aa3db49606f718988e 100644 (file)
@@ -131,6 +131,15 @@ Print only pseudo filesystems.
 *--shadow*::
 Print only filesystems over-mounted by another filesystem.
 
+*-Q*, *--filter* _expr_::
+Print only the filesystems that meet the conditions specified by the expr.
++
+This feature is EXPERIMENTAL. See also *scols-filter*(5).
+For example, include xfs having more than 50% free space:
+____
+ findmnt -Q 'INO.USED < INO.AVAIL && FSTYPE == "xfs"'
+____
+
 *-R*, *--submounts*::
 Print recursively all submounts for the selected filesystems. The restrictions defined by options *-t*, *-O*, *-S*, *-T* and *--direction* are not applied to submounts. All submounts are always printed in tree-like order. The option enables the tree-like output format by default. This option has no effect for *--mtab* or *--fstab*.
 
@@ -243,6 +252,7 @@ mailto:kzak@redhat.com[Karel Zak]
 
 *fstab*(5),
 *mount*(8)
+*scols-filter*(5)
 
 include::man-common/bugreports.adoc[]