NFSv4: Fail the truncate() if the lock/open stateid is invalid
authorTrond Myklebust <[email protected]>
Tue, 4 Mar 2014 18:48:16 +0000 (13:48 -0500)
committerTrond Myklebust <[email protected]>
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 <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Trond Myklebust <[email protected]>
fs/nfs/nfs4proc.c