From patchwork Mon Jul 3 08:28:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Maiolino X-Patchwork-Id: 9822177 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 27957602F0 for ; Mon, 3 Jul 2017 08:28:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 12B5B26E5D for ; Mon, 3 Jul 2017 08:28:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 06D4C27F98; Mon, 3 Jul 2017 08:28:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6A7FB26E5D for ; Mon, 3 Jul 2017 08:28:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752581AbdGCI2g (ORCPT ); Mon, 3 Jul 2017 04:28:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55558 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752369AbdGCI2g (ORCPT ); Mon, 3 Jul 2017 04:28:36 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 11AB4C0587FF for ; Mon, 3 Jul 2017 08:28:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 11AB4C0587FF Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=cmaiolino@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 11AB4C0587FF Received: from eorzea.usersys.redhat.com (unknown [10.43.17.52]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8817087BB9 for ; Mon, 3 Jul 2017 08:28:35 +0000 (UTC) From: Carlos Maiolino To: linux-xfs@vger.kernel.org Subject: [PATCH] xfs_io: Print filesystem statfs flags in 'statfs' command Date: Mon, 3 Jul 2017 10:28:30 +0200 Message-Id: <20170703082830.22967-1-cmaiolino@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Mon, 03 Jul 2017 08:28:36 +0000 (UTC) Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Sometimes printing the flags from the statfs structure is useful, so, make statfs command print them. Signed-off-by: Carlos Maiolino Reviewed-by: Bill O'Donnell --- io/stat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/io/stat.c b/io/stat.c index 783eb2e..060ff83 100644 --- a/io/stat.c +++ b/io/stat.c @@ -199,6 +199,7 @@ statfs_f( printf(_("statfs.f_bavail = %lld\n"), (long long) st.f_bavail); printf(_("statfs.f_files = %lld\n"), (long long) st.f_files); printf(_("statfs.f_ffree = %lld\n"), (long long) st.f_ffree); + printf(_("statfs.f_fflags = 0x%llx\n"), (long long) st.f_flags); } if (file->flags & IO_FOREIGN) return 0;