summaryrefslogtreecommitdiffstats
path: root/xlators/features/snapview-server/src/snapview-server.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/snapview-server/src/snapview-server.c')
-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);