From patchwork Thu Feb 12 09:07:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Tao X-Patchwork-Id: 5818451 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 97EF19F37F for ; Thu, 12 Feb 2015 09:07:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DD3D720165 for ; Thu, 12 Feb 2015 09:07:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0292E2015E for ; Thu, 12 Feb 2015 09:07:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754975AbbBLJHi (ORCPT ); Thu, 12 Feb 2015 04:07:38 -0500 Received: from mail-pa0-f43.google.com ([209.85.220.43]:64175 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755200AbbBLJHf (ORCPT ); Thu, 12 Feb 2015 04:07:35 -0500 Received: by mail-pa0-f43.google.com with SMTP id fa1so10189465pad.2 for ; Thu, 12 Feb 2015 01:07:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=6VwlWoyy7+XAx6L1c4i3ou1d8qmyBT/YtbhK1UZaN8o=; b=MshGUymEzmSJ7xtzqBzzrejxTfsFRmtv5WLLAzTLaiO1ORsk8+U8BKE6IU0e9UDOCo L8sT11ad0RDFrHt6A+z/1oVJ4++2ZDz0KSPnaiIerxJlSFOlO9LNjB2vDd5sShIde97p SAx8c1/bYivtUrzILm377PNDbYrcUaPBhWhC6Iq9PkYT/+9ZTrk9mcOcrZhXN0Wv/kLh im+nQuUtpdMrkfGUpfcFt1ANmQCPtkXPnkSzb90QXa8ggr1Gt7hGSyvLJng2UFPS6tnQ nvZwEi1YS0AqhJlxZcA5DMx05M7ySKAI5tojvBDVuSSqaIkTPTA+79wWAqwC3Gk9IVzp 3RMw== X-Gm-Message-State: ALoCoQl42uxrvmuUoXZ1p1fvIWkcgC2jP9bsJoQc3QL/T9i/o+B4kkK9zzB56xg3jhfKRUdPdvM4 X-Received: by 10.70.50.194 with SMTP id e2mr4929332pdo.74.1423732054589; Thu, 12 Feb 2015 01:07:34 -0800 (PST) Received: from localhost.localdomain (ec2-54-65-164-9.ap-northeast-1.compute.amazonaws.com. [54.65.164.9]) by mx.google.com with ESMTPSA id gi3sm3036765pbc.83.2015.02.12.01.07.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Feb 2015 01:07:34 -0800 (PST) From: Peng Tao To: linux-nfs@vger.kernel.org Cc: Peng Tao Subject: [PATCH] nfsstat: update client op to match latest kernel Date: Thu, 12 Feb 2015 17:07:21 +0800 Message-Id: <1423732041-18082-1-git-send-email-tao.peng@primarydata.com> X-Mailer: git-send-email 1.9.1 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We've added a bunch of ops and removed getdevicelist. Signed-off-by: Peng Tao --- utils/nfsstat/nfsstat.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/utils/nfsstat/nfsstat.c b/utils/nfsstat/nfsstat.c index 9f481db..de57109 100644 --- a/utils/nfsstat/nfsstat.c +++ b/utils/nfsstat/nfsstat.c @@ -31,7 +31,7 @@ enum { SRVPROC3_SZ = 22, CLTPROC3_SZ = 22, SRVPROC4_SZ = 2, - CLTPROC4_SZ = 49, + CLTPROC4_SZ = 55, SRVPROC4OPS_SZ = 59, }; @@ -127,7 +127,7 @@ static const char * nfscltproc4name[CLTPROC4_SZ] = { "remove", "rename", "link", "symlink", "create", "pathconf", "statfs", "readlink", "readdir", "server_caps", "delegreturn", "getacl", "setacl", "fs_locations", - "rel_lkowner", "secinfo", + "rel_lkowner", "secinfo", "fsid_present", /* nfsv4.1 client ops */ "exchange_id", "create_ses", @@ -139,7 +139,12 @@ static const char * nfscltproc4name[CLTPROC4_SZ] = { "getdevinfo", "layoutcommit", "layoutreturn", - "getdevlist", + "secinfo_no_n", + "test_stateid", + "free_stateid", + "bind_con_ses", + "destroy_clid", + "seek", }; static const char * nfssrvproc4opname[SRVPROC4OPS_SZ] = {