ver_linux: Print filesystems
PATCH 1/1 ver_linux: Print filesystems
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 <[email protected]>
--- ver_linux | 12 ++++++++++++ 1 file changed, 12 insertions(+)
ver_linux +12 -0
@@ -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'
Signature · 5 lines
2.33.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Quoted 16 lines
both available and mounted.
-T option is not implemented on all df implementations
(on busybox only withIF_FEATURE_HUMAN_READABLE, also aosp toybox does not support it), thus fallback without it.Signed-off-by Petr Vorel <[email protected]>--- ver_linux | 12 ++++++++++++ 1 file changed, 12 insertions(+)ver_linux +0
-0
ver_linux echo · line 143
Quoted 6 lines
ver_linux +3
-0@@ -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)
Actually cut uses tab delimiter as the default
=> it can be just
cut -f2 /proc/filesystems
Quoted 12 lines
ver_linux +9
-0+ +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'
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Hi!
Reviewed-by Cyril Hrubis <[email protected]>
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp