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

Bug#659111: Regarding NFSv4: Save the owner/group name string when doing open



Myklebust, Trond wrote:

> So, the "Save owner/group name string" is the most efficient way of
> ensuring that the open works as expected, and it should be a fairly
> self-contained patch.
>
> There is an alternative solution, which is much shorter (and therefore
> appropriate for stable kernels). That is to add a line of the form
>
> 	nfs_revalidate_inode(server, state->inode);
>
> in _nfs4_do_open() immediately after the "if (opendata->o_arg.open_flags
> & O_EXCL) {}" condition. That will cause the NFSv4 client to send an
> extra GETATTR if the inode is incomplete.

Nice!  Thanks much for this.

I've sent some questions about this fix to the earlier thread[1].

[1] http://thread.gmane.org/gmane.linux.nfs/45995/focus=49491



Reply to: