From patchwork Fri Feb 13 00:56:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Tao X-Patchwork-Id: 5822761 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 A0D9C9F37F for ; Fri, 13 Feb 2015 00:57:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BA49320254 for ; Fri, 13 Feb 2015 00:57:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7A03320222 for ; Fri, 13 Feb 2015 00:57:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751311AbbBMA5L (ORCPT ); Thu, 12 Feb 2015 19:57:11 -0500 Received: from mail-pd0-f170.google.com ([209.85.192.170]:47028 "EHLO mail-pd0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750872AbbBMA5K (ORCPT ); Thu, 12 Feb 2015 19:57:10 -0500 Received: by pdjy10 with SMTP id y10so15598936pdj.13 for ; Thu, 12 Feb 2015 16:57:10 -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=vMOnsWY9IPwFXx9lUtVXE4oXD+Bw1ilo0gmg5YTRS/k=; b=RE+Bi1fnxNkt5QlEQM51h7L8jMCMbDsd/Upk2PBisrfxAoVRLpGB13PS6SEGVZSNj2 9dlaV0/NGwpt9blRivTiNh+931Oxp6IRFoAn81svNFcRFBe0JCJRu7e5flIWcD6FjNzq 8QreX5OYcIUfUMYMVHWkEOZNdy0E+ef+Ga4cBWkxU756TKI+9T1r3oro86y9kf9NVQQp Ky/MuON/q6pWRgZu4zSVTJKp3YZNaKBMEOgP4GCCGX5fn5NCYji7J/m9ZavLnBr+xPJx Rl32irAAjhcOu8DFWu5e8HLQZoHMa9bnuWGAZ5uczGfKpjvDetjmprf3mLaGBi/YAJ6y tIJA== X-Gm-Message-State: ALoCoQkrMYb3yquY0I/FYs94sIIQeh6J9wn3gLo6ijkkL/Za23RI373/0x2DaAD+fHl0mcMh4jnJ X-Received: by 10.70.94.195 with SMTP id de3mr10578286pdb.59.1423789029913; Thu, 12 Feb 2015 16:57:09 -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 f12sm4918911pat.43.2015.02.12.16.57.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Feb 2015 16:57:09 -0800 (PST) From: Peng Tao To: linux-nfs@vger.kernel.org Cc: Steve Dickson , Peng Tao , Anna Schumaker Subject: [PATCH v2] nfsstat: update client op to match latest kernel Date: Fri, 13 Feb 2015 08:56:39 +0800 Message-Id: <1423788999-54229-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. Cc: Anna Schumaker Signed-off-by: Peng Tao --- utils/nfsstat/nfsstat.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/utils/nfsstat/nfsstat.c b/utils/nfsstat/nfsstat.c index 9f481db..427c724 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 = 56, 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,14 @@ static const char * nfscltproc4name[CLTPROC4_SZ] = { "getdevinfo", "layoutcommit", "layoutreturn", - "getdevlist", + "secinfo_no_n", + "test_stateid", + "free_stateid", + "bind_con_ses", + "destroy_clid", + "seek", + "allocate", + "deallocate", }; static const char * nfssrvproc4opname[SRVPROC4OPS_SZ] = {