From e4a96670781631894b2fe649710e99fb0a75a1e8 Mon Sep 17 00:00:00 2001 From: Christof Schmitt Date: Thu, 2 Jul 2015 15:20:01 -0700 Subject: [PATCH] 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 Reviewed-by: Volker Lendecke --- lib/util/gpfswrap.c | 12 ------------ lib/util/gpfswrap.h | 1 - 2 files changed, 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); -- 2.34.1