summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristof Schmitt <cs@samba.org>2015-07-02 15:20:01 -0700
committerChristof Schmitt <cs@samba.org>2015-07-08 02:54:26 +0200
commite4a96670781631894b2fe649710e99fb0a75a1e8 (patch)
treead750853290e23e4a34906022338542bacc188bf /lib
parent2d62b9ab7d80b8970ca16c962e6fbc942b9d1bd6 (diff)
downloadsamba-e4a96670781631894b2fe649710e99fb0a75a1e8.tar.gz
gpfswrap: Remove unused wrapper for gpfs_fnctl
With the removal of the fileset quota check this wrapper function is longer used. Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/util/gpfswrap.c12
-rw-r--r--lib/util/gpfswrap.h1
2 files changed, 0 insertions, 13 deletions
diff --git a/lib/util/gpfswrap.c b/lib/util/gpfswrap.c
index 732fcb69744..4c7410552be 100644
--- a/lib/util/gpfswrap.c
+++ b/lib/util/gpfswrap.c
@@ -38,7 +38,6 @@ static int (*gpfs_lib_init_fn)(int flags);
static int (*gpfs_set_times_path_fn)(char *pathname, int flags,
gpfs_timestruc_t times[4]);
static int (*gpfs_quotactl_fn)(char *pathname, int cmd, int id, void *bufp);
-static int (*gpfs_fcntl_fn)(int fd, void *argp);
static int (*gpfs_getfilesetid_fn)(char *pathname, char *name, int *idp);
static int (*gpfs_init_trace_fn)(void);
static int (*gpfs_query_trace_fn)(void);
@@ -71,7 +70,6 @@ int gpfswrap_init(void)
gpfs_lib_init_fn = dlsym(l, "gpfs_lib_init");
gpfs_set_times_path_fn = dlsym(l, "gpfs_set_times_path");
gpfs_quotactl_fn = dlsym(l, "gpfs_quotactl");
- gpfs_fcntl_fn = dlsym(l, "gpfs_fcntl");
gpfs_getfilesetid_fn = dlsym(l, "gpfs_getfilesetid");
gpfs_init_trace_fn = dlsym(l, "gpfs_init_trace");
gpfs_query_trace_fn = dlsym(l, "gpfs_query_trace");
@@ -213,16 +211,6 @@ int gpfswrap_quotactl(char *pathname, int cmd, int id, void *bufp)
return gpfs_quotactl_fn(pathname, cmd, id, bufp);
}
-int gpfswrap_fcntl(int fd, void *argp)
-{
- if (gpfs_fcntl_fn == NULL) {
- errno = ENOSYS;
- return -1;
- }
-
- return gpfs_fcntl_fn(fd, argp);
-}
-
int gpfswrap_getfilesetid(char *pathname, char *name, int *idp)
{
if (gpfs_getfilesetid_fn == NULL) {
diff --git a/lib/util/gpfswrap.h b/lib/util/gpfswrap.h
index fc8ac4ac4c1..6fee40acd0d 100644
--- a/lib/util/gpfswrap.h
+++ b/lib/util/gpfswrap.h
@@ -42,7 +42,6 @@ int gpfswrap_lib_init(int flags);
int gpfswrap_set_times_path(char *pathname, int flags,
gpfs_timestruc_t times[4]);
int gpfswrap_quotactl(char *pathname, int cmd, int id, void *bufp);
-int gpfswrap_fcntl(int fd, void *argp);
int gpfswrap_getfilesetid(char *pathname, char *name, int *idp);
int gpfswrap_init_trace(void);
int gpfswrap_query_trace(void);