summaryrefslogtreecommitdiffstats
path: root/libglusterfsclient/src/libglusterfsclient.h
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfsclient/src/libglusterfsclient.h')
-rwxr-xr-xlibglusterfsclient/src/libglusterfsclient.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.h b/libglusterfsclient/src/libglusterfsclient.h
index 1684381c9bb..ad23e02a0cd 100755
--- a/libglusterfsclient/src/libglusterfsclient.h
+++ b/libglusterfsclient/src/libglusterfsclient.h
@@ -1339,6 +1339,19 @@ glusterfs_fchdir (glusterfs_file_t fd);
char *
glusterfs_getcwd (char *buf, size_t size);
+/*
+ * Truncate the file to a specified length.
+ *
+ * @path : path to the file.
+ * @length : length to which the file has to be truncated.
+ *
+ * Returns 0 on success and -1 on failure with errno set appropriately
+ */
+
+int
+glusterfs_truncate (const char *path, off_t length);
+
+
/* FIXME: review the need for these apis */
/* added for log related initialization in booster fork implementation */
void