From 1a3c2a48e7cd44f2cc8b7b5384321d289aedab8e Mon Sep 17 00:00:00 2001 From: ShyamsundarR Date: Thu, 20 Dec 2018 15:28:37 -0500 Subject: gfapi: update returned/callback pre/post attributes to glfs_stat Change-Id: Ie0fe971e694101aa011d66aa496d0644669c2c5a Updates: #389 Signed-off-by: Kinglong Mee Signed-off-by: ShyamsundarR --- xlators/features/snapview-server/src/snapview-server.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'xlators/features/snapview-server/src') diff --git a/xlators/features/snapview-server/src/snapview-server.c b/xlators/features/snapview-server/src/snapview-server.c index 9fd2cfb41e6..b4998b88a8e 100644 --- a/xlators/features/snapview-server/src/snapview-server.c +++ b/xlators/features/snapview-server/src/snapview-server.c @@ -18,6 +18,8 @@ #include #include +#include "glfs-internal.h" + int gf_setcredentials(uid_t *uid, gid_t *gid, uint16_t ngrps, uint32_t *groups) { @@ -2256,7 +2258,7 @@ svs_readv(call_frame_t *frame, xlator_t *this, fd_t *fd, size_t size, }; svs_fd_t *sfd = NULL; int ret = -1; - struct stat fstatbuf = { + struct glfs_stat fstatbuf = { 0, }; glfs_fd_t *glfd = NULL; @@ -2333,7 +2335,7 @@ svs_readv(call_frame_t *frame, xlator_t *this, fd_t *fd, size_t size, iobref = iobref_new(); iobref_add(iobref, iobuf); - iatt_from_stat(&stbuf, &fstatbuf); + glfs_iatt_from_statx(&stbuf, &fstatbuf); gf_uuid_copy(stbuf.ia_gfid, fd->inode->gfid); svs_fill_ino_from_gfid(&stbuf); -- cgit