Linux Test Project
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH 1/1] ver_linux: Print filesystems
Date: Wed, 27 Oct 2021 09:41:01 +0200	[thread overview]
Message-ID: <YXkCjfUloIauZK6x@pevik> (raw)
In-Reply-To: <20211027073719.15922-1-pvorel@suse.cz>

> 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

  reply	other threads:[~2021-10-27  7:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-27  7:37 [LTP] [PATCH 1/1] ver_linux: Print filesystems Petr Vorel
2021-10-27  7:41 ` Petr Vorel [this message]
2021-11-03 14:35 ` Cyril Hrubis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YXkCjfUloIauZK6x@pevik \
    --to=pvorel@suse.cz \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox