summaryrefslogtreecommitdiffstats
path: root/xlators/features/snapview-server/src
diff options
context:
space:
mode:
authorShyamsundarR <srangana@redhat.com>2018-12-20 15:28:37 -0500
committerAmar Tumballi <amarts@redhat.com>2019-01-07 14:43:27 +0000
commit1a3c2a48e7cd44f2cc8b7b5384321d289aedab8e (patch)
treef4e38a878c80581d6e6af22e796fb88eb49ea80a /xlators/features/snapview-server/src
parentc31f1c232a6673c4e3fc3188e15ae0e708a54613 (diff)
gfapi: update returned/callback pre/post attributes to glfs_stat
Change-Id: Ie0fe971e694101aa011d66aa496d0644669c2c5a Updates: #389 Signed-off-by: Kinglong Mee <mijinlong@open-fs.com> Signed-off-by: ShyamsundarR <srangana@redhat.com>
Diffstat (limited to 'xlators/features/snapview-server/src')
-rw-r--r--xlators/features/snapview-server/src/snapview-server.c6
1 files changed, 4 insertions, 2 deletions
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 <glusterfs/syscall.h>
#include <pthread.h>
+#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);