pnfs-obj: Return PNFS_NOT_ATTEMPTED in case of read/write_pagelist
authorBoaz Harrosh <bharrosh@panasas.com>
Mon, 31 Oct 2011 21:45:46 +0000 (14:45 -0700)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 3 Nov 2011 03:56:03 +0000 (23:56 -0400)
commite6c40fe3f4c4967f1cb486191ed4a5d5f55f3f7e
treea7747effb21709bfbb0b3ded2e85253f37e7711e
parent4cdc685c7d06f659ef6c336d4242005cdd8df401
pnfs-obj: Return PNFS_NOT_ATTEMPTED in case of read/write_pagelist

objlayout driver was always returning PNFS_ATTEMPTED from it's
read/write_pagelist operations. Even on error. Fix that.

Start by establishing an error return API from io-engine, by
not returning ssize_t (length-or-error) but returning "int"
0=OK, 0>Error. And clean up all return types in io-engine.

Then if io-engine returned error return PNFS_NOT_ATTEMPTED
to generic layer. (With a dprint)

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/objlayout/objio_osd.c
fs/nfs/objlayout/objlayout.c
fs/nfs/objlayout/objlayout.h