From: Trond Myklebust Date: Tue, 3 Jan 2006 08:55:13 +0000 (+0100) Subject: NFSv4: Make nfs4_state track O_RDWR, O_RDONLY and O_WRONLY separately X-Git-Tag: v2.6.16-rc1~935^2~4^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e761692381f294ea079d2e869fcd7c0afc79e394;p=pandora-kernel.git NFSv4: Make nfs4_state track O_RDWR, O_RDONLY and O_WRONLY separately A closer reading of RFC3530 reveals that OPEN_DOWNGRADE must always specify a access modes that have been the argument of a previous OPEN operation. IOW: doing OPEN(O_RDWR) and then OPEN_DOWNGRADE(O_WRONLY) is forbidden unless the user called OPEN(O_WRONLY) In order to fix that, we really need to track the three possible open states separately. Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed