diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-12-22 14:36:55 +0100 |
---|---|---|
committer | Christian Ambach <ambi@samba.org> | 2012-02-10 17:54:10 +0100 |
commit | 89a4f66826a2e614bd782dcaff72ea3650229142 (patch) | |
tree | df2cd28016dcc8c9878a08b295008a9ddc6d00d6 /source3/modules/gpfs.c | |
parent | 2e95d8048b9e9c7025ddada7ede15494e6016ba9 (diff) | |
download | samba-89a4f66826a2e614bd782dcaff72ea3650229142.tar.gz samba-89a4f66826a2e614bd782dcaff72ea3650229142.tar.bz2 samba-89a4f66826a2e614bd782dcaff72ea3650229142.zip |
s3:vfs_gpfs: make "gpfs:winattr" 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 | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source3/modules/gpfs.c b/source3/modules/gpfs.c index d73b94b75f..b31d9b0d53 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_winattr; static bool gpfs_do_ftruncate; static int (*gpfs_set_share_fn)(int fd, unsigned int allow, unsigned int deny); @@ -159,7 +158,7 @@ int smbd_gpfs_get_realfilename_path(char *pathname, char *filenamep, int get_gpfs_winattrs(char *pathname,struct gpfs_winattr *attrs) { - if ((!gpfs_winattr) || (gpfs_get_winattrs_path_fn == NULL)) { + if (gpfs_get_winattrs_path_fn == NULL) { errno = ENOSYS; return -1; } @@ -170,7 +169,7 @@ int get_gpfs_winattrs(char *pathname,struct gpfs_winattr *attrs) int smbd_fget_gpfs_winattrs(int fd, struct gpfs_winattr *attrs) { - if ((!gpfs_winattr) || (gpfs_get_winattrs_fn == NULL)) { + if (gpfs_get_winattrs_fn == NULL) { errno = ENOSYS; return -1; } @@ -180,7 +179,7 @@ int smbd_fget_gpfs_winattrs(int fd, struct gpfs_winattr *attrs) int set_gpfs_winattrs(char *pathname,int flags,struct gpfs_winattr *attrs) { - if ((!gpfs_winattr) || (gpfs_set_winattrs_path_fn == NULL)) { + if (gpfs_set_winattrs_path_fn == NULL) { errno = ENOSYS; return -1; } @@ -266,7 +265,6 @@ void init_gpfs(void) gpfs_getrealfilename = lp_parm_bool(-1, "gpfs", "getrealfilename", True); - gpfs_winattr = lp_parm_bool(-1, "gpfs", "winattr", False); gpfs_do_ftruncate = lp_parm_bool(-1, "gpfs", "ftruncate", True); return; |