Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / test / system / st_rados_delete_pool.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 TEST_SYSTEM_ST_RADOS_DELETE_POOL_H
16 #define TEST_SYSTEM_ST_RADOS_DELETE_POOL_H
17
18 #include "systest_runnable.h"
19
20 class CrossProcessSem;
21
22 /*
23  * st_rados_delete_pool
24  *
25  * Waits on pool_setup_sem, posts to it,
26  * deletes a pool, and posts to delete_pool_sem.
27  */
28 class StRadosDeletePool : public SysTestRunnable
29 {
30 public:
31   StRadosDeletePool(int argc, const char **argv,
32                     CrossProcessSem *pool_setup_sem,
33                     CrossProcessSem *delete_pool_sem,
34                     const std::string &pool_name);
35   ~StRadosDeletePool() override;
36   int run() override;
37 private:
38   CrossProcessSem *m_pool_setup_sem;
39   CrossProcessSem *m_delete_pool_sem;
40   std::string m_pool_name;
41 };
42
43 #endif