]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pnfs-obj: Return PNFS_NOT_ATTEMPTED in case of read/write_pagelist
authorBoaz Harrosh <bharrosh@panasas.com>
Sun, 2 Oct 2011 15:23:29 +0000 (17:23 +0200)
committerBoaz Harrosh <bharrosh@panasas.com>
Tue, 4 Oct 2011 10:17:16 +0000 (12:17 +0200)
commite4ec2aff2cf48a874fc834fcf22faaf732d82e6f
tree7164f63431e86d0a4862270e82bd8b2e0b3a877e
parent9bb8a8e3fdb0f0ca4f35d9941eef779620c513a2
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>
fs/nfs/objlayout/objio_osd.c
fs/nfs/objlayout/objlayout.c
fs/nfs/objlayout/objlayout.h