Skip to content

Commit

Permalink
client: Add inline fields to Inode
Browse files Browse the repository at this point in the history
Signed-off-by: Yunchuan Wen <[email protected]>
Signed-off-by: Li Wang <[email protected]>
  • Loading branch information
dragonylffly authored and Yunchuan Wen committed Jan 27, 2014
1 parent 45c2ab4 commit be3db0b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/client/Inode.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ class Inode {
version_t version; // auth only
version_t xattr_version;

// inline data
version_t inline_version;
bufferlist inline_data;

bool is_symlink() const { return (mode & S_IFMT) == S_IFLNK; }
bool is_dir() const { return (mode & S_IFMT) == S_IFDIR; }
bool is_file() const { return (mode & S_IFMT) == S_IFREG; }
Expand Down Expand Up @@ -207,6 +211,7 @@ class Inode {
rdev(0), mode(0), uid(0), gid(0), nlink(0),
size(0), truncate_seq(1), truncate_size(-1),
time_warp_seq(0), max_size(0), version(0), xattr_version(0),
inline_version(0),
flags(0),
dir_hashed(false), dir_replicated(false), auth_cap(NULL),
dirty_caps(0), flushing_caps(0), flushing_cap_seq(0), shared_gen(0), cache_gen(0),
Expand Down

0 comments on commit be3db0b

Please sign in to comment.