X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Ftools%2Fcephfs%2FRoleSelector.h;fp=src%2Fceph%2Fsrc%2Ftools%2Fcephfs%2FRoleSelector.h;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=933c51d0f78fd1dacfbd45ba8e178f7168f16c8b;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/tools/cephfs/RoleSelector.h b/src/ceph/src/tools/cephfs/RoleSelector.h deleted file mode 100644 index 933c51d..0000000 --- a/src/ceph/src/tools/cephfs/RoleSelector.h +++ /dev/null @@ -1,35 +0,0 @@ - -#ifndef ROLE_SELECTOR_H_ -#define ROLE_SELECTOR_H_ - -#include -#include -#include "mds/mdstypes.h" -#include "mds/FSMap.h" - -/** - * When you want to let the user act on a single rank in a namespace, - * or all of them. - */ -class MDSRoleSelector -{ - public: - const std::vector &get_roles() const {return roles;} - int parse(const FSMap &fsmap, std::string const &str); - MDSRoleSelector() - : fscid(FS_CLUSTER_ID_NONE) - {} - fs_cluster_id_t get_ns() const - { - return fscid; - } - protected: - int parse_rank( - const FSMap &fsmap, - std::string const &str); - std::vector roles; - fs_cluster_id_t fscid; -}; - -#endif // ROLE_SELECTOR_H_ -