blob: f98782e4392d2f3e33168ec5b868836b98a97392 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef CEPH_CLIENT_DIR_H
#define CEPH_CLIENT_DIR_H
#include <string>
#include <vector>
class Dentry;
struct Inode;
class Dir {
public:
Inode *parent_inode; // my inode
ceph::unordered_map<std::string, Dentry*> dentries;
unsigned num_null_dentries = 0;
std::vector<Dentry*> readdir_cache;
explicit Dir(Inode* in) { parent_inode = in; }
bool is_empty() { return dentries.empty(); }
};
#endif
|