summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_gpfs.h
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@us.ibm.com>2012-03-08 13:57:12 -0800
committerChristian Ambach <ambi@samba.org>2012-03-22 18:41:22 +0100
commit0a896094c61fa1eec7dbb5bb35485747cdc1549d (patch)
treeeb63f518b3742eefe802acf0fc987937c0a9a508 /source3/modules/vfs_gpfs.h
parent62616784ae5460bfd8f68ccfe596f80f55727b87 (diff)
downloadsamba-0a896094c61fa1eec7dbb5bb35485747cdc1549d.tar.gz
samba-0a896094c61fa1eec7dbb5bb35485747cdc1549d.tar.bz2
samba-0a896094c61fa1eec7dbb5bb35485747cdc1549d.zip
s3:vfs_gpfs: Implement fallocate callback for GPFS
GPFS provides the gpfs_prealloc call. Implement the fallocate callback with mode VFS_FALLOCATE_EXTEND_SIZE using this call. There is no support for VFS_FALLOCATE_KEEP_SIZE, so report this mode as not available.
Diffstat (limited to 'source3/modules/vfs_gpfs.h')
-rw-r--r--source3/modules/vfs_gpfs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/modules/vfs_gpfs.h b/source3/modules/vfs_gpfs.h
index 4a9528ae05..dfa4d4358f 100644
--- a/source3/modules/vfs_gpfs.h
+++ b/source3/modules/vfs_gpfs.h
@@ -33,6 +33,7 @@ int smbd_gpfs_get_realfilename_path(char *pathname, char *filenamep,
int smbd_fget_gpfs_winattrs(int fd, struct gpfs_winattr *attrs);
int get_gpfs_winattrs(char * pathname,struct gpfs_winattr *attrs);
int set_gpfs_winattrs(char * pathname,int flags,struct gpfs_winattr *attrs);
+int smbd_gpfs_prealloc(int fd, gpfs_off64_t start, gpfs_off64_t bytes);
int smbd_gpfs_ftruncate(int fd, gpfs_off64_t length);
int get_gpfs_quota(const char *pathname, int type, int id,
struct gpfs_quotaInfo *qi);