diff options
author | Kinglong Mee <kinglongmee@gmail.com> | 2018-02-01 10:13:07 +0800 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-02-12 21:34:46 +0000 |
commit | 248152767b0599986bbb6bb35fc27197f6be6964 (patch) | |
tree | f18550ce89d0786cc21dca474d187d45a49017fb /api/src/glfs.h | |
parent | 09943beb499617212f2985ca8ea9ecd1ed1b470e (diff) |
gfapi: return pre/post attributes from glfs_ftruncate
Updates: #389
Change-Id: I8faea0828921fb17f05f7321c3cb01747373f21e
Signed-off-by: Kinglong Mee <mijinlong@open-fs.com>
Diffstat (limited to 'api/src/glfs.h')
-rw-r--r-- | api/src/glfs.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/api/src/glfs.h b/api/src/glfs.h index 2addacb7ecf..e2f2a2c1804 100644 --- a/api/src/glfs.h +++ b/api/src/glfs.h @@ -571,8 +571,9 @@ off_t glfs_lseek (glfs_fd_t *fd, off_t offset, int whence) __THROW int glfs_truncate (glfs_t *fs, const char *path, off_t length) __THROW GFAPI_PUBLIC(glfs_truncate, 3.7.15); -int glfs_ftruncate (glfs_fd_t *fd, off_t length) __THROW - GFAPI_PUBLIC(glfs_ftruncate, 3.4.0); +int glfs_ftruncate (glfs_fd_t *fd, off_t length, struct stat *prestat, + struct stat *poststat) __THROW + GFAPI_PUBLIC(glfs_ftruncate, 4.0.0); int glfs_ftruncate_async (glfs_fd_t *fd, off_t length, glfs_io_cbk fn, void *data) __THROW GFAPI_PUBLIC(glfs_ftruncate_async, 3.4.0); |