NFSv4.1/pnfs: Handle LAYOUTGET return values correctly
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 31 Aug 2015 08:19:22 +0000 (01:19 -0700)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 31 Aug 2015 08:33:12 +0000 (01:33 -0700)
According to RFC5661 section 18.43.3, if the server cannot satisfy
the loga_minlength argument to LAYOUTGET, there are 2 cases:
1) If loga_minlength == 0, it returns NFS4ERR_LAYOUTTRYLATER
2) If loga_minlength != 0, it returns NFS4ERR_BADLAYOUT

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4proc.c

Simple merge