]> 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)
committerNathan Cutler <ncutler@suse.com>
Sat, 10 Nov 2018 14:55:28 +0000 (15:55 +0100)
commit6856c7987a25153ade4e0960addcfd4864ec8592
treedc33fd8471fe9779fd5940461facbfbec0004379
parent3b1f63653ad98126ed45b4ce6cb986de461d2d3a
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>
(cherry picked from commit cb19db75c7f23278d2598b58526d1bf8bf00b679)
src/tools/cephfs/JournalTool.cc
src/tools/cephfs/JournalTool.h