]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tools: error handling on journal import/export 2878/head
authorJohn Spray <john.spray@redhat.com>
Fri, 7 Nov 2014 14:20:04 +0000 (14:20 +0000)
committerGreg Farnum <gfarnum@redhat.com>
Fri, 7 Nov 2014 22:10:27 +0000 (14:10 -0800)
commit740a1bd19494f7ffa5d5e0d78d8a942dc60dc43a
treec75216ba42860551b30793287647244f9103bb6f
parentdc307ac2607f0ed163781df0fbf85b7ebeeadc41
tools: error handling on journal import/export

Actually propagate nonzero returns codes!  Also
add checks on return values of I/O functions so
that someone doesn't think they've successfully
exported a journal if they haven't, and some
validation of the header pointers during import
so that people find out with a nice error
instead of an assertion if something is up.

Signed-off-by: John Spray <john.spray@redhat.com>
Fix compile issue in the position value cout.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/tools/cephfs/Dumper.cc
src/tools/cephfs/Dumper.h
src/tools/cephfs/JournalTool.cc