]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: include CAP_PIN in caps_liked()
authorSage Weil <sage@newdream.net>
Thu, 7 May 2009 21:14:29 +0000 (14:14 -0700)
committerSage Weil <sage@newdream.net>
Thu, 7 May 2009 21:14:29 +0000 (14:14 -0700)
Among other things, this prevents confusion in the uclient.

src/mds/CInode.h

index ee286d98e8e661b006124e7d2e9f199920fc12d1..035cf3cfa4f95156ee71da8b6df5937b5b4773e0 100644 (file)
@@ -661,7 +661,7 @@ public:
   // caps allowed
   int get_caps_liked() {
     if (is_dir())
-      return CEPH_CAP_ANY_EXCL | CEPH_CAP_ANY_RDCACHE;  // but not, say, FILE_RD|WR|WRBUFFER
+      return CEPH_CAP_PIN | CEPH_CAP_ANY_EXCL | CEPH_CAP_ANY_RDCACHE;  // but not, say, FILE_RD|WR|WRBUFFER
     else
       return CEPH_CAP_ANY;
   }