]>
git.proxmox.com Git - ceph.git/blob - ceph/src/tools/cephfs/Dumper.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 * Ceph - scalable distributed file system
6 * Copyright (C) 2010 Greg Farnum <gregf@hq.newdream.net>
8 * This is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License version 2.1, as published by the Free Software
11 * Foundation. See file COPYING.
14 #ifndef JOURNAL_DUMPER_H_
15 #define JOURNAL_DUMPER_H_
18 #include "MDSUtility.h"
23 * This class lets you dump out an mds journal for troubleshooting or whatever.
25 * It was built to work with cmds so some of the design choices are random.
26 * To use, create a Dumper, call init(), and then call dump() with the name
27 * of the file to dump to.
30 class Dumper
: public MDSUtility
{
39 int init(mds_role_t role_
, const std::string
&type
);
40 int recover_journal(Journaler
*journaler
);
41 int dump(const char *dumpfile
);
42 int undump(const char *dumpfile
, bool force
);
45 #endif /* JOURNAL_DUMPER_H_ */