]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/MDSAuthCaps: debug is_capable
authorSage Weil <sage@redhat.com>
Wed, 8 Jul 2015 20:20:46 +0000 (16:20 -0400)
committerSage Weil <sage@redhat.com>
Thu, 1 Oct 2015 13:39:30 +0000 (09:39 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mds/MDSAuthCaps.cc

index c4d5b8a8e348df7bad87e7059bd40f59ed33a66b..1e91359e10baca01eabb99fc42960943f7ebf9db 100644 (file)
@@ -136,6 +136,11 @@ bool MDSAuthCaps::is_capable(const std::string &inode_path,
                             uid_t inode_uid, gid_t inode_gid, unsigned inode_mode,
                             uid_t uid, unsigned mask) 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 uid " << uid << " mask " << mask << dendl;
   for (std::vector<MDSCapGrant>::const_iterator i = grants.begin();
        i != grants.end();
        ++i) {