summaryrefslogtreecommitdiff
path: root/src/client/Dir.h
blob: 7e05d375f2f5151e8afcc1f07f6d9392ac386ca8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef CEPH_CLIENT_DIR_H
#define CEPH_CLIENT_DIR_H

class Inode;

class Dir {
 public:
  Inode    *parent_inode;  // my inode
  hash_map<string, Dentry*> dentries;
  map<string, Dentry*> dentry_map;
  uint64_t release_count;
  uint64_t max_offset;

  Dir(Inode* in) : release_count(0), max_offset(2) { parent_inode = in; }

  bool is_empty() {  return dentries.empty(); }
};

#endif