uid_t new_uid, gid_t new_gid,
const entity_addr_t& addr) const
{
- if (cct)
- ldout(cct, 10) << __func__ << " inode(path /" << inode_path
- << " owner " << inode_uid << ":" << inode_gid
- << " mode 0" << std::oct << inode_mode << std::dec
- << ") by caller " << caller_uid << ":" << caller_gid
+ ldout(g_ceph_context, 10) << __func__ << " inode(path /" << inode_path
+ << " owner " << inode_uid << ":" << inode_gid
+ << " mode 0" << std::oct << inode_mode << std::dec
+ << ") by caller " << caller_uid << ":" << caller_gid
// << "[" << caller_gid_list << "]";
- << " mask " << mask
- << " new " << new_uid << ":" << new_gid
- << " cap: " << *this << dendl;
+ << " mask " << mask
+ << " new " << new_uid << ":" << new_gid
+ << " cap: " << *this << dendl;
for (const auto& grant : grants) {
if (grant.network.size() &&
{}));
}
-bool MDSAuthCaps::parse(CephContext *c, std::string_view str, ostream *err)
+bool MDSAuthCaps::parse(std::string_view str, ostream *err)
{
// Special case for legacy caps
if (str == "allow") {
MDSCapParser<decltype(iter)> g;
bool r = qi::phrase_parse(iter, end, g, ascii::space, *this);
- cct = c; // set after parser self-assignment
if (r && iter == end) {
for (auto& grant : grants) {
std::sort(grant.match.gids.begin(), grant.match.gids.end());