Skip to content

Commit

Permalink
client: always provide the file type in stx_mode
Browse files Browse the repository at this point in the history
The proposed statx interface does this, and this would allow ganesha
to get away without requesting CEPH_STATX_MODE when all it wants is
enough to instantiate a filehandle.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
  • Loading branch information
jtlayton committed Sep 20, 2016
1 parent e64493c commit b332eed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client/Client.cc
Expand Up @@ -6852,6 +6852,7 @@ void Client::fill_statx(Inode *in, unsigned int mask, struct ceph_statx *stx)
/* These are always considered to be available */
stx->stx_dev = in->snapid;
stx->stx_blksize = MAX(in->layout.stripe_unit, 4096);
stx->stx_mode = S_IFMT & in->mode;

if (use_faked_inos())
stx->stx_ino = in->faked_ino;
Expand Down

0 comments on commit b332eed

Please sign in to comment.