]> git.proxmox.com Git - ceph.git/blob - ceph/src/test/librados/test.h
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / test / librados / test.h
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) 2011 New Dream Network
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_TEST_RADOS_API_TEST_H
16 #define CEPH_TEST_RADOS_API_TEST_H
17
18 #include "include/rados/librados.h"
19 #include "test/librados/test_shared.h"
20
21 #include <map>
22 #include <string>
23 #include <unistd.h>
24
25 std::string create_one_pool(const std::string &pool_name, rados_t *cluster,
26 uint32_t pg_num=0);
27 std::string create_one_ec_pool(const std::string &pool_name, rados_t *cluster);
28 std::string connect_cluster(rados_t *cluster);
29 int destroy_one_pool(const std::string &pool_name, rados_t *cluster);
30 int destroy_one_ec_pool(const std::string &pool_name, rados_t *cluster);
31
32 #endif