From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BF7ACC433EF for ; Wed, 27 Oct 2021 07:56:44 +0000 (UTC) Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0B8C7610A5 for ; Wed, 27 Oct 2021 07:56:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0B8C7610A5 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.linux.it Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id B11703C6895 for ; Wed, 27 Oct 2021 09:56:41 +0200 (CEST) Received: from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [217.194.8.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id E07763C6806 for ; Wed, 27 Oct 2021 09:56:31 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-3.smtp.seeweb.it (Postfix) with ESMTPS id F308E1A019B7 for ; Wed, 27 Oct 2021 09:56:30 +0200 (CEST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 2543A1FD40; Wed, 27 Oct 2021 07:56:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1635321390; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=KUTwah5ICE1qt/dZOAVeZb0tc9qzxq10E5wJtLMDZz8=; b=d90TtqUJ7e/McXdtdJdRTuSnL3UyFMn6SSTpvrA8U2ynLBkt+lJNRRokT3nBZvpzRutNOE 5m4wrwB2qW74SU6JBBs3Ijc8kiLMgMoi15dLg7Uo+54iDtsMbI7lHT15QPRRnw4BMW02/W pJHNDHnSFmjbuUF+1ji/ZJiKb4RhDIw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1635321390; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=KUTwah5ICE1qt/dZOAVeZb0tc9qzxq10E5wJtLMDZz8=; b=8C+CwGkBDqzSCosQNrDXlIJYemiq7h1K0OijsTBtEvIWv01/bqw/1yelUo6fcZ+QdILFZ9 MPNr/5K6HHE6xiAg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id F02E213FDC; Wed, 27 Oct 2021 07:56:29 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Js8FOS0GeWElfgAAMHmgww (envelope-from ); Wed, 27 Oct 2021 07:56:29 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Wed, 27 Oct 2021 09:56:15 +0200 Message-Id: <20211027075615.19832-1-pvorel@suse.cz> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-3.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH v2 1/1] ver_linux: Print filesystems X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" both available and mounted. check for options as aosp toybox does not support -h, -T option requires IF_FEATURE_HUMAN_READABLE on busybox. Signed-off-by: Petr Vorel --- changes v1->v2: properly check options ver_linux | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ver_linux b/ver_linux index 824c39510..82b7468a6 100755 --- a/ver_linux +++ b/ver_linux @@ -138,6 +138,21 @@ echo echo 'cpuinfo:' tst_cmd_run lscpu || cat /proc/cpuinfo +echo +echo 'available filesystems:' +echo $(cut -f2 /proc/filesystems | sort -u) + +echo +echo 'mounted filesystems (/proc/mounts):' +cat /proc/mounts + +echo +echo 'mounted filesystems (df):' +df_opt= +if ! (df -h 2>&1 | grep -i -q -e 'unknown option' -e 'invalid option'); then df_opt="$df_opt -h"; fi +if ! (df -T 2>&1 | grep -i -q -e 'unknown option' -e 'invalid option'); then df_opt="$df_opt -T"; fi +df $df_opt + 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