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)
commit21b874c873b5019db8bb4b4f6aa929c4bac0a398
treecd9ee5cd8f0b0edd55abcc9937b853e76cd335b9
parent4ae93560b11cb2b57ea5732d442458694ab0c168
NFSv4.1/pnfs: Handle LAYOUTGET return values correctly

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