From 84300ab6d1d29cb2dc484d12ec3361db5bc97d77 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 3 Aug 2009 14:25:16 -0700 Subject: [PATCH] mds: issue caps on non-auth inodes Not sure how that && is_auth() snuck in there. --- src/mds/CInode.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mds/CInode.cc b/src/mds/CInode.cc index 36a50e10218c4..7c79f25bd443f 100644 --- a/src/mds/CInode.cc +++ b/src/mds/CInode.cc @@ -1534,7 +1534,8 @@ bool CInode::encode_inodestat(bufferlist& bl, Session *session, i->ctime.encode_timeval(&e.ctime); dout(20) << " pfile " << pfile << " pauth " << pauth << " plink " << plink << " pxattr " << pxattr - << " ctime " << i->ctime << dendl; + << " ctime " << i->ctime + << " valid=" << valid << dendl; i = pfile ? pi:oi; e.layout = i->layout; @@ -1589,7 +1590,7 @@ bool CInode::encode_inodestat(bufferlist& bl, Session *session, e.cap.mseq = 0; e.cap.realm = 0; } else { - if (!no_caps && valid && !cap && is_auth()) { + if (!no_caps && valid && !cap) { // add a new cap cap = add_client_cap(client, session, find_snaprealm()); if (is_auth()) -- 2.39.5