* [LTP] [PATCH 1/1] ver_linux: Print filesystems @ 2021-10-27 7:37 Petr Vorel 2021-10-27 7:41 ` Petr Vorel 2021-11-03 14:35 ` Cyril Hrubis 0 siblings, 2 replies; 3+ messages in thread From: Petr Vorel @ 2021-10-27 7:37 UTC (permalink / raw) To: ltp 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 -- Mailing list info: https://lists.linux.it/listinfo/ltp ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [LTP] [PATCH 1/1] ver_linux: Print filesystems 2021-10-27 7:37 [LTP] [PATCH 1/1] ver_linux: Print filesystems Petr Vorel @ 2021-10-27 7:41 ` Petr Vorel 2021-11-03 14:35 ` Cyril Hrubis 1 sibling, 0 replies; 3+ messages in thread From: Petr Vorel @ 2021-10-27 7:41 UTC (permalink / raw) To: ltp > 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) Actually cut uses tab delimiter as the default => it can be just cut -f2 /proc/filesystems > + > +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' -- Mailing list info: https://lists.linux.it/listinfo/ltp ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LTP] [PATCH 1/1] ver_linux: Print filesystems 2021-10-27 7:37 [LTP] [PATCH 1/1] ver_linux: Print filesystems Petr Vorel 2021-10-27 7:41 ` Petr Vorel @ 2021-11-03 14:35 ` Cyril Hrubis 1 sibling, 0 replies; 3+ messages in thread From: Cyril Hrubis @ 2021-11-03 14:35 UTC (permalink / raw) To: Petr Vorel; +Cc: ltp Hi! Reviewed-by: Cyril Hrubis <chrubis@suse.cz> -- Cyril Hrubis chrubis@suse.cz -- Mailing list info: https://lists.linux.it/listinfo/ltp ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-11-03 14:34 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2021-10-27 7:37 [LTP] [PATCH 1/1] ver_linux: Print filesystems Petr Vorel 2021-10-27 7:41 ` Petr Vorel 2021-11-03 14:35 ` Cyril Hrubis
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.