summaryrefslogtreecommitdiffstats
path: root/src/client/Dir.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/Dir.h')
-rw-r--r--src/client/Dir.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/client/Dir.h b/src/client/Dir.h
new file mode 100644
index 000000000..731a2038e
--- /dev/null
+++ b/src/client/Dir.h
@@ -0,0 +1,19 @@
+#ifndef CEPH_CLIENT_DIR_H
+#define CEPH_CLIENT_DIR_H
+
+struct Inode;
+
+class Dir {
+ public:
+ Inode *parent_inode; // my inode
+ ceph::unordered_map<string, Dentry*> dentries;
+ unsigned num_null_dentries = 0;
+
+ vector<Dentry*> readdir_cache;
+
+ explicit Dir(Inode* in) { parent_inode = in; }
+
+ bool is_empty() { return dentries.empty(); }
+};
+
+#endif