]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | #ifndef CEPH_CLIENT_DIR_H |
2 | #define CEPH_CLIENT_DIR_H | |
3 | ||
4 | struct Inode; | |
5 | ||
6 | class Dir { | |
7 | public: | |
8 | Inode *parent_inode; // my inode | |
9 | ceph::unordered_map<string, Dentry*> dentries; | |
10 | vector<Dentry*> readdir_cache; | |
11 | ||
12 | explicit Dir(Inode* in) { parent_inode = in; } | |
13 | ||
14 | bool is_empty() { return dentries.empty(); } | |
15 | }; | |
16 | ||
17 | #endif |