From b332eed1b9d75ff05487eb194c5ee83d187ad5d7 Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Mon, 19 Sep 2016 13:02:45 -0400 Subject: [PATCH] client: always provide the file type in stx_mode 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 --- src/client/Client.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/Client.cc b/src/client/Client.cc index f431b60d9a519..6a31bd1730290 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -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; -- 2.39.5