]> git.proxmox.com Git - ceph.git/blame - ceph/src/tools/ceph_objectstore_tool.h
update sources to v12.2.4
[ceph.git] / ceph / src / tools / ceph_objectstore_tool.h
CommitLineData
7c673cae
FG
1// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2// vim: ts=8 sw=2 smarttab
3/*
4 * Ceph - scalable distributed file system
5 *
6 * Copyright (C) 2013 Inktank
7 *
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.
12 *
13 */
14
15#ifndef CEPH_OBJECTSTORE_TOOL_H_
16#define CEPH_OBJECTSTORE_TOOL_H_
17
18#include "RadosDump.h"
19
20class ObjectStoreTool : public RadosDump
21{
22 public:
23 ObjectStoreTool(int file_fd, bool dry_run)
24 : RadosDump(file_fd, dry_run)
25 {}
26
b32b8144 27 int dump_import(Formatter *formatter);
7c673cae
FG
28 int do_import(ObjectStore *store, OSDSuperblock& sb, bool force,
29 std::string pgidstr,
30 ObjectStore::Sequencer &osr);
31 int do_export(ObjectStore *fs, coll_t coll, spg_t pgid,
32 pg_info_t &info, epoch_t map_epoch, __u8 struct_ver,
33 const OSDSuperblock& superblock,
34 PastIntervals &past_intervals);
b32b8144
FG
35 int dump_object(Formatter *formatter,
36 bufferlist &bl);
7c673cae
FG
37 int get_object(
38 ObjectStore *store, coll_t coll,
39 bufferlist &bl, OSDMap &curmap, bool *skipped_objects,
224ce89b 40 ObjectStore::Sequencer &osr);
7c673cae
FG
41 int export_file(
42 ObjectStore *store, coll_t cid, ghobject_t &obj);
43 int export_files(ObjectStore *store, coll_t coll);
44};
45
46#endif // CEPH_OBJECSTORE_TOOL_H_