summaryrefslogtreecommitdiffstats
path: root/tests/basic
diff options
context:
space:
mode:
authorKinglong Mee <kinglongmee@gmail.com>2018-02-01 11:20:37 +0800
committerAmar Tumballi <amarts@redhat.com>2018-02-12 21:34:46 +0000
commit384562b294e9a7847403961e878a4daa0fff33eb (patch)
tree903cd2cc4552ce1fe17c0d6a707718107e749d43 /tests/basic
parent248152767b0599986bbb6bb35fc27197f6be6964 (diff)
gfapi: return pre/post attributes at callback for glfs api
Updates: #389 Change-Id: Ic71632722effe4b8855d5de3e65688efd9afe1e3 Signed-off-by: Kinglong Mee <mijinlong@open-fs.com>
Diffstat (limited to 'tests/basic')
-rw-r--r--tests/basic/ec/ec-fast-fgetxattr.c3
-rw-r--r--tests/basic/gfapi/gfapi-async-calls-test.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/basic/ec/ec-fast-fgetxattr.c b/tests/basic/ec/ec-fast-fgetxattr.c
index f117f5350ab..ddf5ae90290 100644
--- a/tests/basic/ec/ec-fast-fgetxattr.c
+++ b/tests/basic/ec/ec-fast-fgetxattr.c
@@ -30,7 +30,8 @@ fill_iov (struct iovec *iov, char fillchar, int count)
}
void
-write_async_cbk (glfs_fd_t *fd, ssize_t ret, void *cookie)
+write_async_cbk (glfs_fd_t *fd, ssize_t ret, struct stat *prestat,
+ struct stat *poststat, void *cookie)
{
if (ret < 0) {
diff --git a/tests/basic/gfapi/gfapi-async-calls-test.c b/tests/basic/gfapi/gfapi-async-calls-test.c
index 277067bee2c..58046861668 100644
--- a/tests/basic/gfapi/gfapi-async-calls-test.c
+++ b/tests/basic/gfapi/gfapi-async-calls-test.c
@@ -76,7 +76,8 @@ out:
}
void
-write_async_cbk (glfs_fd_t *fd, ssize_t ret, void *cookie)
+write_async_cbk (glfs_fd_t *fd, ssize_t ret, struct stat *prestat,
+ struct stat *poststat, void *cookie)
{
if (ret < 0) {