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 --- tests/basic/gfapi/glfs-copy-file-range.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/basic/gfapi/glfs-copy-file-range.c b/tests/basic/gfapi/glfs-copy-file-range.c index 756c38d21ec..1c5fd81fc87 100644 --- a/tests/basic/gfapi/glfs-copy-file-range.c +++ b/tests/basic/gfapi/glfs-copy-file-range.c @@ -48,10 +48,13 @@ main(int argc, char **argv) struct stat stbuf = { 0, }; - struct stat prestat_dst = { + struct glfs_stat stat_src = { 0, }; - struct stat poststat_dst = { + struct glfs_stat prestat_dst = { + 0, + }; + struct glfs_stat poststat_dst = { 0, }; size_t len; @@ -153,7 +156,7 @@ main(int argc, char **argv) do { ret = glfs_copy_file_range(glfd_in, NULL, glfd_out, NULL, len, 0, - &stbuf, &prestat_dst, &poststat_dst); + &stat_src, &prestat_dst, &poststat_dst); if (ret == -1) { fprintf(stderr, "copy_file_range failed with %s\n", strerror(errno)); -- cgit