Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / test / system / st_rados_delete_objs.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_OBJS_H
16 #define TEST_SYSTEM_ST_RADOS_DELETE_OBJS_H
17
18 #include "systest_runnable.h"
19
20 class CrossProcessSem;
21
22 /*
23  * st_rados_delete_objs
24  *
25  * Waits on setup_sem, posts to it,
26  * deletes num_objs objects from the pool,
27  * and posts to deleted_sem.
28  */
29 class StRadosDeleteObjs : public SysTestRunnable
30 {
31 public:
32   StRadosDeleteObjs(int argc, const char **argv,
33                     CrossProcessSem *setup_sem,
34                     CrossProcessSem *deleted_sem,
35                     int num_objs,
36                     const std::string &pool_name,
37                     const std::string &suffix);
38   ~StRadosDeleteObjs() override;
39   int run() override;
40 private:
41   CrossProcessSem *m_setup_sem;
42   CrossProcessSem *m_deleted_sem;
43   int m_num_objs;
44   std::string m_pool_name;
45   std::string m_suffix;
46 };
47
48 #endif