]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephfs-journal-tool: dump to per rank output file wherever necessary
authorVenky Shankar <vshankar@redhat.com>
Mon, 23 Jul 2018 06:28:07 +0000 (02:28 -0400)
committerVenky Shankar <vshankar@redhat.com>
Fri, 21 Sep 2018 10:09:39 +0000 (06:09 -0400)
commitcb19db75c7f23278d2598b58526d1bf8bf00b679
treee5dbc01b0c0db2237212b9dc36055d1f5a3aa1ed
parentf3bc838894aae30c02d94265371cd4daf283594a
cephfs-journal-tool: dump to per rank output file wherever necessary

cephfs-journal-tool supports operations on all ranks. Operations
such as dump/export do not write to distinct filenames hence
overwriting the data dumped or exported for the previous rank.

With this change (and further commits), for operations on all
ranks, dump/export would write to distinct filenames suffixed
by the mds rank (.0, .1, etc..). For operations on a single rank
or if there exist a single rank, the passed in filename is used
as it is.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
src/tools/cephfs/JournalTool.cc
src/tools/cephfs/JournalTool.h