NFSv4: Fail the truncate() if the lock/open stateid is invalid
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 4 Mar 2014 18:48:16 +0000 (13:48 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 5 Mar 2014 16:55:25 +0000 (11:55 -0500)
commit0418dae1056d6091e9527b7158a3763f7aa92353
tree5837e26fff816e8a444e53117a401367b1559187
parent869a9d375dca601dde1dee1344f3d1d665505f19
NFSv4: Fail the truncate() if the lock/open stateid is invalid

If the open stateid could not be recovered, or the file locks were lost,
then we should fail the truncate() operation altogether.

Reported-by: Andy Adamson <andros@netapp.com>
Link: http://lkml.kernel.org/r/1393954269-3974-1-git-send-email-andros@netapp.com
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4proc.c