Return-Path: linux-nfs-owner@vger.kernel.org Received: from e9.ny.us.ibm.com ([32.97.182.139]:57426 "EHLO e9.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752169Ab2LIVrD (ORCPT ); Sun, 9 Dec 2012 16:47:03 -0500 Received: from /spool/local by e9.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 9 Dec 2012 16:47:02 -0500 In-Reply-To: References: <50C45D17.5090000@tonian.com> To: Benny Halevy Cc: "J. Bruce Fields" , NFS list , linux-nfs-owner@vger.kernel.org, Trond Myklebust MIME-Version: 1.0 Subject: Re: notify_deviceid_type4 Message-ID: From: Marc Eshel Date: Sun, 9 Dec 2012 13:46:51 -0800 Content-Type: text/plain; charset="US-ASCII" Sender: linux-nfs-owner@vger.kernel.org List-ID: So you are saying it should be: enum pnfs_notify_deviceid_type4 { NOTIFY_DEVICEID4_CHANGE = 1 << 0, NOTIFY_DEVICEID4_DELETE = 1 << 1, }; From: Benny Halevy To: Marc Eshel/Almaden/IBM@IBMUS, Cc: linux-nfs-owner@vger.kernel.org, NFS list , "J. Bruce Fields" , Trond Myklebust Date: 12/09/2012 11:54 AM Subject: Re: notify_deviceid_type4 I'm not sure if and whete that's saud explicitly but another example to support that inrerpretation are the values of notify_type4 that apply to the same bitmap that too are defined as sequential numbers (though zero based) and not as single bit masks. Benny On Dec 9, 2012 8:05 PM, "Marc Eshel" wrote: Can you provide with the spec information that supports your interpretation? Marc. From: Benny Halevy To: Marc Eshel/Almaden/IBM@IBMUS, Cc: linux-nfs-owner@vger.kernel.org, Trond Myklebust , linux-nfs@vger.kernel.org, "J. Bruce Fields" Date: 12/09/2012 09:50 AM Subject: Re: notify_deviceid_type4 The enum values in the spec correspond to bit _numbers_ in the bitmap, not to bitmasks. On Dec 9, 2012 6:43 PM, "Marc Eshel" wrote: I am not sure what you are saying, I am showing the definition from the spec. that show NOTIFY_DEVICEID4_CHANGE = 1, and nfs4.h has it as (1<< 1) which is not 1, it is 2. Marc. Benny Halevy wrote on 12/09/2012 01:42:47 AM: > From: Benny Halevy > To: Marc Eshel/Almaden/IBM@IBMUS, > Cc: Trond Myklebust , "J. Bruce Fields" > , linux-nfs-owner@vger.kernel.org, linux- > nfs@vger.kernel.org > Date: 12/09/2012 01:44 AM > Subject: Re: notify_deviceid_type4 > > On 2012-12-01 07:54, Marc Eshel wrote: > > The spec defines notify_deviceid_type4 as: > > > > 20.12.1. ARGUMENT > > /* > > * Device notification types. > > */ > > enum notify_deviceid_type4 { > > NOTIFY_DEVICEID4_CHANGE = 1, > > NOTIFY_DEVICEID4_DELETE = 2 > > }; > > > > > > but the Linux code in nfs4.h has, is that going to be fixed? > > > > enum pnfs_notify_deviceid_type4 { > > NOTIFY_DEVICEID4_CHANGE = 1 << 1, > > NOTIFY_DEVICEID4_DELETE = 1 << 2, > > }; > > notify_deviceid_type4 specifies bit numbers same as notify_type4 > It seems to me like the definition in nfs4.h is correct. > > Benny > > > > > -- > > To unsubscribe from this list: send the line "unsubscribe linux-nfs" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html > > >