]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: propagate flush errors to fclose/fsync
authorJohn Spray <john.spray@redhat.com>
Tue, 9 Dec 2014 19:52:58 +0000 (19:52 +0000)
committerJohn Spray <john.spray@redhat.com>
Tue, 16 Dec 2014 20:55:24 +0000 (20:55 +0000)
commit6fdf890355c6956957d1de89abdbbbe71d633f16
treed29c090659deb8b77c82c7a9b3139bce7391886a
parenta8611ace59805bad735120c3b98deb1b1a9c224b
client: propagate flush errors to fclose/fsync

Ensure that all calls to _flush get an explicit
context (rather than implicit PutInode used
before), which tags any error onto the Inode object.

Later, read the error from the Inode object in _release_fh
and ensure all callers of _release_fh properly handle
its return code.

Signed-off-by: John Spray <john.spray@redhat.com>
src/client/Client.cc
src/client/Client.h
src/client/Inode.h
src/client/fuse_ll.cc