All-0's stateid and accessing a file in a stateless way

DENIEL Philippe philippe.deniel at cea.fr
Thu Jul 17 07:31:52 EDT 2008


Hi to all,

after my question related to the "all-0's" stateid in OP_WRITE4 and 
OP_READ4, I thought about the possible use of this. The server I am 
developing can work as a Proxy, for the moment it is just a NFSv4 proxy: 
it makes NFSv4 request and answer only in NFSv4, it doesn't re-export in 
NFSv2 or NFSv3. This is a strong limitation. The reason for this is the 
NFSv4 OPEN semantics that requires
the filename which is incompatible with the stateless mechanisms in 
NFSv2/NFSv3. This ALL-0 stateid feature give me a new hope on this but I 
need your opinion, I would not like to rely on something which is a side 
effect of the protocol or a bad interpretation from me.

My question is this one: if I know the filehandle for a file, I will be 
able to read and write to it, with all-0 or all-1 stateids, I will not 
require a OP_OPEN4 to be performed to get a valid stateid. This way, I 
can read and write, just by knowing it FH, in a way similar to the 
"NFSv3 old style way of making I/O". It this true ? Did I misunderstood 
something on this aspect of the protocol ?

I know this is probably a "stupid" question, but this address something 
that could be critical to me, so I want to make sure.

    Philippe


More information about the NFSv4 mailing list