Fwd: Re: notify_deviceid_type4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sorry, my original post was bounced due to containing html.
Forwarding to the list.

Benny


-------- Original Message --------
Subject: 	Re: notify_deviceid_type4
Date: 	Mon, 10 Dec 2012 08:57:29 +0200
From: 	Benny Halevy <bhalevy@xxxxxxxxxx>
To: 	Marc Eshel <eshel@xxxxxxxxxx>
CC: 	NFS list <linux-nfs@xxxxxxxxxxxxxxx>, Trond Myklebust <trond.myklebust@xxxxxxxxxx>, "J. Bruce Fields" <bfields@xxxxxxxxxx>, linux-nfs-owner@xxxxxxxxxxxxxxx


On Dec 9, 2012 11:47 PM, "Marc Eshel" <eshel@xxxxxxxxxx <mailto:eshel@xxxxxxxxxx>> wrote:
>
> So you are saying it should be:
>
> enum pnfs_notify_deviceid_type4 {
>          NOTIFY_DEVICEID4_CHANGE = 1 << 0,
>          NOTIFY_DEVICEID4_DELETE = 1 << 1,
> };

Maybe theoretically but the spec already defined it skipping the first bit.  I'm not sure why. Probably just a mistake.

Benny

>
>
>
> From:   Benny Halevy <bhalevy@xxxxxxxxxx <mailto:bhalevy@xxxxxxxxxx>>
> To:     Marc Eshel/Almaden/IBM@IBMUS,
> Cc:     linux-nfs-owner@xxxxxxxxxxxxxxx <mailto:linux-nfs-owner@xxxxxxxxxxxxxxx>, NFS list
> <linux-nfs@xxxxxxxxxxxxxxx <mailto:linux-nfs@xxxxxxxxxxxxxxx>>, "J. Bruce Fields" <bfields@xxxxxxxxxx <mailto:bfields@xxxxxxxxxx>>, Trond
> Myklebust <trond.myklebust@xxxxxxxxxx <mailto:trond.myklebust@xxxxxxxxxx>>
> 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" <eshel@xxxxxxxxxx <mailto:eshel@xxxxxxxxxx>> wrote:
> Can you provide with the spec information that supports your
> interpretation?
> Marc.
>
>
>
> From:   Benny Halevy <bhalevy@xxxxxxxxxx <mailto:bhalevy@xxxxxxxxxx>>
> To:     Marc Eshel/Almaden/IBM@IBMUS,
> Cc:     linux-nfs-owner@xxxxxxxxxxxxxxx <mailto:linux-nfs-owner@xxxxxxxxxxxxxxx>, Trond Myklebust
> <trond.myklebust@xxxxxxxxxx <mailto:trond.myklebust@xxxxxxxxxx>>, linux-nfs@xxxxxxxxxxxxxxx <mailto:linux-nfs@xxxxxxxxxxxxxxx>, "J. Bruce Fields"
> <bfields@xxxxxxxxxx <mailto:bfields@xxxxxxxxxx>>
> 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" <eshel@xxxxxxxxxx <mailto:eshel@xxxxxxxxxx>> 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 <bhalevy@xxxxxxxxxx <mailto:bhalevy@xxxxxxxxxx>> wrote on 12/09/2012 01:42:47 AM:
>
> > From: Benny Halevy <bhalevy@xxxxxxxxxx <mailto:bhalevy@xxxxxxxxxx>>
> > To: Marc Eshel/Almaden/IBM@IBMUS,
> > Cc: Trond Myklebust <Trond.Myklebust@xxxxxxxxxx <mailto:Trond.Myklebust@xxxxxxxxxx>>, "J. Bruce Fields"
> > <bfields@xxxxxxxxxx <mailto:bfields@xxxxxxxxxx>>, linux-nfs-owner@xxxxxxxxxxxxxxx <mailto:linux-nfs-owner@xxxxxxxxxxxxxxx>, linux-
> > nfs@xxxxxxxxxxxxxxx <mailto:nfs@xxxxxxxxxxxxxxx>
> > 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@xxxxxxxxxxxxxxx <mailto:majordomo@xxxxxxxxxxxxxxx>
> > > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > >
> >
>
>
>



--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux