]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: CInode: create new projection_node with pointers for
authorGreg Farnum <gregf@hq.newdream.net>
Tue, 17 Aug 2010 18:19:02 +0000 (11:19 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Thu, 19 Aug 2010 22:33:53 +0000 (15:33 -0700)
inode, xattrs, and snaprealm.

src/mds/CInode.h

index 3ab73f41e0dee5e28e7b919cfdb788d5df7f4abf..a59f2d852cb91801a8ff143095e5d7651a0c0f68 100644 (file)
@@ -184,6 +184,18 @@ public:
   //bool hack_accessed;
   //utime_t hack_load_stamp;
 
+  struct projection_node {
+    inode_t *inode;
+    map<string,bufferptr> *xattrs;
+    sr_t *snapnode;
+
+    projection_node() : inode(NULL), xattrs(NULL), snapnode(NULL) {}
+    projection_node(inode_t *in, sr_t *sn) : inode(in), xattrs(NULL), snapnode(sn) {}
+    projection_node(inode_t *in, map<string, bufferptr> *xp = NULL, sr_t *sn = NULL) :
+      inode(in), xattrs(xp), snapnode(sn) {}
+  };
+  list<projection_node*> projected_nodes;
+
   // projected values (only defined while dirty)
   list<inode_t*>   projected_inode;