]> git.baikalelectronics.ru Git - kernel.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)
commit40e272e3ed70df15a39ac91d67ea786141e34135
tree5fad31549fc817c548bbdd28aaa719b152f630c7
parenteedc36a89fae369a29f9380d166265f82a3336c3
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