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) 2011 New Dream Network
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.
15 #ifndef TEST_SYSTEM_ST_RADOS_CREATE_POOL_H
16 #define TEST_SYSTEM_ST_RADOS_CREATE_POOL_H
18 #include "systest_runnable.h"
20 class CrossProcessSem;
23 * st_rados_create_pool
25 * Waits, then posts to setup_sem.
26 * Creates a pool and populates it with some objects.
27 * Then, calls pool_setup_sem->post()
29 class StRadosCreatePool : public SysTestRunnable
32 static std::string get_random_buf(int sz);
33 StRadosCreatePool(int argc, const char **argv,
34 CrossProcessSem *setup_sem,
35 CrossProcessSem *pool_setup_sem,
36 CrossProcessSem *close_create_pool_sem,
37 const std::string &pool_name,
39 const std::string &suffix);
40 ~StRadosCreatePool() override;
43 CrossProcessSem *m_setup_sem;
44 CrossProcessSem *m_pool_setup_sem;
45 CrossProcessSem *m_close_create_pool;
46 std::string m_pool_name;
51 std::string get_temp_pool_name(const char* prefix);