summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2011-11-24 16:57:58 +0100
committerChristian Ambach <ambi@samba.org>2011-11-24 17:25:04 +0100
commit94229435e80ecc5c0158c59e0ab3976b98668238 (patch)
treed1d6f9bc3a2f515ea0bd614b377a296882272eda /source3
parent6753656c7464424519f9daa9f89576585511f574 (diff)
downloadsamba-94229435e80ecc5c0158c59e0ab3976b98668238.tar.gz
samba-94229435e80ecc5c0158c59e0ab3976b98668238.tar.bz2
samba-94229435e80ecc5c0158c59e0ab3976b98668238.zip
s3:vfs:gpfs remove non-working code
when development of vfs_gpfs was started a long time ago it was considered a good idea to have it compileable even if GPFS is not around and then the module would complain in the logs that libgpfs is not there Nowadays this does not work any more as the code contains GPFS specific types that need the GPFS header files. Instead of making it compile again by adding GPFS typedefs, this removes the whole approach. Other VFS modules also do not even compile when necessary headers are not around, so do the same for the GPFS module code.
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/gpfs.c65
1 files changed, 0 insertions, 65 deletions
diff --git a/source3/modules/gpfs.c b/source3/modules/gpfs.c
index 5b0d7d04ab..d73b94b75f 100644
--- a/source3/modules/gpfs.c
+++ b/source3/modules/gpfs.c
@@ -21,8 +21,6 @@
#include "system/filesys.h"
#include "smbd/smbd.h"
-#ifdef HAVE_GPFS
-
#include "libcli/security/security.h"
#include "gpfs_gpl.h"
#include "vfs_gpfs.h"
@@ -273,66 +271,3 @@ void init_gpfs(void)
return;
}
-
-#else
-
-int set_gpfs_lease(int snum, int leasetype)
-{
- DEBUG(0, ("'VFS module smbgpfs loaded, without gpfs support compiled\n"));
-
- /* We need to indicate that no GPFS is around by returning ENOSYS, so
- * that the normal linux kernel oplock code is called. */
- errno = ENOSYS;
- return -1;
-}
-
-bool set_gpfs_sharemode(files_struct *fsp, uint32 access_mask,
- uint32 share_access)
-{
- DEBUG(0, ("VFS module - smbgpfs.so loaded, without gpfs support compiled\n"));
- /* Don't disturb but complain */
- return True;
-}
-
-int smbd_gpfs_getacl(char *pathname, int flags, void *acl)
-{
- errno = ENOSYS;
- return -1;
-}
-
-int smbd_gpfs_putacl(char *pathname, int flags, void *acl)
-{
- errno = ENOSYS;
- return -1;
-}
-
-int smbd_gpfs_get_realfilename_path(char *pathname, char *fileamep,
- int *buflen)
-{
- errno = ENOSYS;
- return -1;
-}
-
-int set_gpfs_winattrs(char *pathname,int flags,struct gpfs_winattr *attrs)
-{
- errno = ENOSYS;
- return -1;
-}
-
-int get_gpfs_winattrs(char *pathname,struct gpfs_winattr *attrs)
-{
- errno = ENOSYS;
- return -1;
-}
-
-void smbd_gpfs_lib_init()
-{
- return;
-}
-
-void init_gpfs(void)
-{
- return;
-}
-
-#endif /* HAVE_GPFS */