[LTP] [PATCH 1/1] ver_linux: Print filesystems
Petr Vorel
pvorel@suse.cz
Wed Oct 27 09:37:19 CEST 2021
both available and mounted.
-T option is not implemented on all df implementations
(on busybox only with IF_FEATURE_HUMAN_READABLE, also aosp toybox does
not support it), thus fallback without it.
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
ver_linux | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/ver_linux b/ver_linux
index 824c39510..abaa30a4c 100755
--- a/ver_linux
+++ b/ver_linux
@@ -138,6 +138,18 @@ echo
echo 'cpuinfo:'
tst_cmd_run lscpu || cat /proc/cpuinfo
+echo
+echo 'available filesystems:'
+echo $(cut -f2 -d$'\t' /proc/filesystems | sort -u)
+
+echo
+echo 'mounted filesystems (/proc/mounts):'
+cat /proc/mounts
+
+echo
+echo 'mounted filesystems (df):'
+df -hT 2>/dev/null || df -h
+
echo
if is_enabled /sys/module/apparmor/parameters/enabled; then
echo 'AppArmor enabled'
--
2.33.1
More information about the ltp
mailing list