diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-12-22 15:54:41 +0100 |
---|---|---|
committer | Christian Ambach <ambi@samba.org> | 2012-02-10 17:54:10 +0100 |
commit | 8ad2b6a55e23922570659a4e4fb88e1b7d710772 (patch) | |
tree | 3dface856c1d77472228cd5e949553b45117d842 /source3/modules/gpfs.c | |
parent | 89a4f66826a2e614bd782dcaff72ea3650229142 (diff) | |
download | samba-8ad2b6a55e23922570659a4e4fb88e1b7d710772.tar.gz samba-8ad2b6a55e23922570659a4e4fb88e1b7d710772.tar.xz samba-8ad2b6a55e23922570659a4e4fb88e1b7d710772.zip |
s3:vfs_gpfs: make "gpfs:ftruncate" a per share option
metze
Signed-off-by: Christian Ambach <ambi@samba.org>
Diffstat (limited to 'source3/modules/gpfs.c')
-rw-r--r-- | source3/modules/gpfs.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/modules/gpfs.c b/source3/modules/gpfs.c index b31d9b0d53..57a5a0c9fb 100644 --- a/source3/modules/gpfs.c +++ b/source3/modules/gpfs.c @@ -26,7 +26,6 @@ #include "vfs_gpfs.h" static bool gpfs_getrealfilename; -static bool gpfs_do_ftruncate; static int (*gpfs_set_share_fn)(int fd, unsigned int allow, unsigned int deny); static int (*gpfs_set_lease_fn)(int fd, unsigned int leaseType); @@ -135,7 +134,7 @@ int smbd_gpfs_putacl(char *pathname, int flags, void *acl) int smbd_gpfs_ftruncate(int fd, gpfs_off64_t length) { - if (!gpfs_do_ftruncate || (gpfs_ftruncate_fn == NULL)) { + if (gpfs_ftruncate_fn == NULL) { errno = ENOSYS; return -1; } @@ -265,7 +264,6 @@ void init_gpfs(void) gpfs_getrealfilename = lp_parm_bool(-1, "gpfs", "getrealfilename", True); - gpfs_do_ftruncate = lp_parm_bool(-1, "gpfs", "ftruncate", True); return; } |