Re: [PATCH 2/3] NILFS2: support NFSv2 export

2015-05-11 Thread Ryusuke Konishi
On Mon, 11 May 2015 17:02:51 +1000, NeilBrown wrote: > On Mon, 11 May 2015 01:31:43 +0900 (JST) Ryusuke Konishi > wrote: > >> On Fri, 08 May 2015 10:16:23 +1000, NeilBrown wrote: >> > The "fh_len" passed to ->fh_to_* is not guaranteed to be that same as >> > that returned by encode_fh - it may b

Re: [PATCH 2/3] NILFS2: support NFSv2 export

2015-05-10 Thread Ryusuke Konishi
On Fri, 08 May 2015 10:16:23 +1000, NeilBrown wrote: > The "fh_len" passed to ->fh_to_* is not guaranteed to be that same as > that returned by encode_fh - it may be larger. > > With NFSv2, the filehandle is fixed length, so it may appear longer > than expected and be zero-padded. > > So we must