]> asedeno.scripts.mit.edu Git - linux.git/commit
orangefs: implement statx
authorMartin Brandenburg <martin@omnibond.com>
Tue, 25 Apr 2017 19:38:03 +0000 (15:38 -0400)
committerMike Marshall <hubcap@omnibond.com>
Wed, 26 Apr 2017 18:33:00 +0000 (14:33 -0400)
commit68a24a6cc4a6025e111c282186a2506281d79b4b
tree5fad31549fc817c548bbdd28aaa719b152f630c7
parent7b796ae37092ef520641b3a96c211c1cc67a0346
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>
fs/orangefs/file.c
fs/orangefs/inode.c
fs/orangefs/namei.c
fs/orangefs/orangefs-kernel.h
fs/orangefs/orangefs-utils.c