diff options
author | Martin Brandenburg <martin@omnibond.com> | 2017-04-25 22:38:03 +0300 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2017-04-26 21:33:00 +0300 |
commit | 68a24a6cc4a6025e111c282186a2506281d79b4b (patch) | |
tree | 5fad31549fc817c548bbdd28aaa719b152f630c7 /fs/orangefs/orangefs-kernel.h | |
parent | 7b796ae37092ef520641b3a96c211c1cc67a0346 (diff) | |
download | linux-68a24a6cc4a6025e111c282186a2506281d79b4b.tar.xz |
orangefs: implement statx
Fortunately OrangeFS has had a getattr request mask for a long time.
The server basically has two difficulty levels for attributes. Fetching
any attribute except size requires communicating with the metadata
server for that handle. Since all the attributes are right there, it
makes sense to return them all. Fetching the size requires
communicating with every I/O server (that the file is distributed
across). Therefore if asked for anything except size, get everything
except size, and if asked for size, get everything.
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/orangefs-kernel.h')
-rw-r--r-- | fs/orangefs/orangefs-kernel.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/orangefs/orangefs-kernel.h b/fs/orangefs/orangefs-kernel.h index d9b050bc8882..ea0ce507a6ab 100644 --- a/fs/orangefs/orangefs-kernel.h +++ b/fs/orangefs/orangefs-kernel.h @@ -215,6 +215,7 @@ struct orangefs_inode_s { unsigned long pinode_flags; unsigned long getattr_time; + u32 getattr_mask; }; #define P_ATIME_FLAG 0 @@ -495,7 +496,8 @@ int orangefs_inode_setxattr(struct inode *inode, size_t size, int flags); -int orangefs_inode_getattr(struct inode *inode, int new, int bypass); +int orangefs_inode_getattr(struct inode *inode, int new, int bypass, + u32 request_mask); int orangefs_inode_check_changed(struct inode *inode); |