diff options
author | Sage Weil <sage@redhat.com> | 2018-08-11 20:55:03 +0200 |
---|---|---|
committer | Sage Weil <sage@redhat.com> | 2018-08-31 16:26:19 +0200 |
commit | 0c330c211aaf6380aa1509143cf3f4c2f201026c (patch) | |
tree | 514b03668d16334ce6e5045ce66b00c380b7df56 /src/librados/RadosClient.cc | |
parent | librados: mark all auid calls deprecated (diff) | |
download | ceph-0c330c211aaf6380aa1509143cf3f4c2f201026c.tar.xz ceph-0c330c211aaf6380aa1509143cf3f4c2f201026c.zip |
librados: deprecate calls that take auid
Return EOPNOTSUPP for auid-specific calls, or EINVAL for ones that get a non-default
auid value.
Signed-off-by: Sage Weil <sage@redhat.com>
Diffstat (limited to 'src/librados/RadosClient.cc')
-rw-r--r-- | src/librados/RadosClient.cc | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/src/librados/RadosClient.cc b/src/librados/RadosClient.cc index 6ad5d3780a0..51d3b9f2ceb 100644 --- a/src/librados/RadosClient.cc +++ b/src/librados/RadosClient.cc @@ -170,24 +170,6 @@ int librados::RadosClient::pool_required_alignment2(int64_t pool_id, }); } -int librados::RadosClient::pool_get_auid(uint64_t pool_id, - unsigned long long *auid) -{ - int r = wait_for_osdmap(); - if (r < 0) - return r; - objecter->with_osdmap([&](const OSDMap& o) { - const pg_pool_t *pg = o.get_pg_pool(pool_id); - if (!pg) { - r = -ENOENT; - } else { - r = 0; - *auid = pg->auid; - } - }); - return r; -} - int librados::RadosClient::pool_get_name(uint64_t pool_id, std::string *s, bool wait_latest_map) { int r = wait_for_osdmap(); @@ -704,7 +686,7 @@ bool librados::RadosClient::put() { return (refcnt == 0); } -int librados::RadosClient::pool_create(string& name, unsigned long long auid, +int librados::RadosClient::pool_create(string& name, int16_t crush_rule) { if (!name.length()) @@ -733,8 +715,8 @@ int librados::RadosClient::pool_create(string& name, unsigned long long auid, return reply; } -int librados::RadosClient::pool_create_async(string& name, PoolAsyncCompletionImpl *c, - unsigned long long auid, +int librados::RadosClient::pool_create_async(string& name, + PoolAsyncCompletionImpl *c, int16_t crush_rule) { int r = wait_for_osdmap(); |