From patchwork Thu Apr 20 17:06:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zorro Lang X-Patchwork-Id: 9691013 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 E964E60383 for ; Thu, 20 Apr 2017 17:07:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE05320265 for ; Thu, 20 Apr 2017 17:07:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D28AB2236A; Thu, 20 Apr 2017 17:07:16 +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 6654320265 for ; Thu, 20 Apr 2017 17:07:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S945813AbdDTRHI (ORCPT ); Thu, 20 Apr 2017 13:07:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51712 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S945408AbdDTRHH (ORCPT ); Thu, 20 Apr 2017 13:07:07 -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 638E3C04B92C for ; Thu, 20 Apr 2017 17:07:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 638E3C04B92C Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=zlang@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 638E3C04B92C Received: from localhost.localdomain.com (ovpn-8-37.pek2.redhat.com [10.72.8.37]) by smtp.corp.redhat.com (Postfix) with ESMTP id 647C751DE7 for ; Thu, 20 Apr 2017 17:07:05 +0000 (UTC) From: Zorro Lang To: linux-xfs@vger.kernel.org Subject: [PATCH] xfs_io: add missed inode command into man page Date: Fri, 21 Apr 2017 01:06:57 +0800 Message-Id: <1492708017-14163-1-git-send-email-zlang@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.31]); Thu, 20 Apr 2017 17:07:06 +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 There's an "inode" command in xfs_io, it's used to query physical information about an inode. But there's not any information about it in xfs_io and other related man pages. So document this command in the xfs_io man page now. Signed-off-by: Zorro Lang --- man/man8/xfs_io.8 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/man/man8/xfs_io.8 b/man/man8/xfs_io.8 index 19e1ae4..ceb6cf4 100644 --- a/man/man8/xfs_io.8 +++ b/man/man8/xfs_io.8 @@ -650,6 +650,23 @@ sec uses UNIX timestamp notation and is the seconds elapsed since nsec is the nanoseconds since the sec. This value needs to be in the range 0-999999999 with UTIME_NOW and UTIME_OMIT being exceptions. Each (sec, nsec) pair constitutes a single timestamp value. +.RE +.PD +.TP +.BI " inode [ [ -n ] " number " ] [ -v ]" +The inode command querys physical information about an inode, it +returns 1 if any inode number greater than 32 bits exists in the +filesystem, or 0 if none exist by default. The +.I number +is used to specify an inode number, then inode command returns this +inode number if it's in use, or 0 if not. But if use +.B \-n +with +.I number +, the next used inode number after this number will be returned, or 0 +if can't find the next one. +.B \-v +for verbose mode, the inode number's size in bits will be displayed. .SH MEMORY MAPPED I/O COMMANDS .TP