Skip to content

Commit

Permalink
osd/OSDCap: rbd profile permits use of rbd.metadata_list cls method
Browse files Browse the repository at this point in the history
Fixes: http://tracker.ceph.com/issues/39973

Signed-off-by: songweibin <song.weibin@zte.com.cn>
  • Loading branch information
Songweibin committed May 29, 2019
1 parent b97022c commit acc447d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/osd/OSDCap.cc
Expand Up @@ -336,6 +336,8 @@ void OSDCapGrant::expand_profile()
OSDCapSpec(osd_rwxa_t(OSD_CAP_CLS_R)));
profile_grants.emplace_back(OSDCapMatch(string(), "rbd_mirroring"),
OSDCapSpec(osd_rwxa_t(OSD_CAP_CLS_R)));
profile_grants.emplace_back(OSDCapMatch(profile.pool_namespace.pool_name),
OSDCapSpec("rbd", "metadata_list"));
profile_grants.emplace_back(OSDCapMatch(profile.pool_namespace),
OSDCapSpec(osd_rwxa_t(OSD_CAP_R |
OSD_CAP_W |
Expand Down

0 comments on commit acc447d

Please sign in to comment.