]> git.proxmox.com Git - ceph.git/blame - ceph/src/client/Dir.h
import quincy beta 17.1.0
[ceph.git] / ceph / src / client / Dir.h
CommitLineData
7c673cae
FG
1#ifndef CEPH_CLIENT_DIR_H
2#define CEPH_CLIENT_DIR_H
3
20effc67
TL
4#include <string>
5#include <vector>
6
7class Dentry;
7c673cae
FG
8struct Inode;
9
10class Dir {
11 public:
12 Inode *parent_inode; // my inode
20effc67 13 ceph::unordered_map<std::string, Dentry*> dentries;
91327a77
AA
14 unsigned num_null_dentries = 0;
15
20effc67 16 std::vector<Dentry*> readdir_cache;
7c673cae
FG
17
18 explicit Dir(Inode* in) { parent_inode = in; }
19
20 bool is_empty() { return dentries.empty(); }
21};
22
23#endif