diff options
author | ShyamsundarR <srangana@redhat.com> | 2018-12-20 15:28:37 -0500 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2019-01-07 14:43:27 +0000 |
commit | 1a3c2a48e7cd44f2cc8b7b5384321d289aedab8e (patch) | |
tree | f4e38a878c80581d6e6af22e796fb88eb49ea80a /tests | |
parent | c31f1c232a6673c4e3fc3188e15ae0e708a54613 (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 'tests')
-rw-r--r-- | tests/basic/gfapi/glfs-copy-file-range.c | 9 |
1 files changed, 6 insertions, 3 deletions
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)); |