From: Ralph Wuerthner Date: Fri, 31 Jan 2020 08:51:27 +0000 (+0100) Subject: gpfswrap: Remove unused wrapper gpfswrap_getfilesetid() X-Git-Tag: ldb-2.1.1~216 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18c266413425408862fe2c17b153d4142ba86722;p=thirdparty%2Fsamba.git gpfswrap: Remove unused wrapper gpfswrap_getfilesetid() Signed-off-by: Ralph Wuerthner Reviewed-by: Christof Schmitt Reviewed-by: Gary Lockyer --- diff --git a/lib/util/gpfswrap.c b/lib/util/gpfswrap.c index 7bc2ec06c15..bd8cc11f9e8 100644 --- a/lib/util/gpfswrap.c +++ b/lib/util/gpfswrap.c @@ -39,7 +39,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_getfilesetid_fn)(char *pathname, char *name, int *idp); static int (*gpfs_init_trace_fn)(void); static int (*gpfs_query_trace_fn)(void); static void (*gpfs_add_trace_fn)(int level, const char *msg); @@ -75,7 +74,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_getfilesetid_fn = dlsym(l, "gpfs_getfilesetid"); gpfs_init_trace_fn = dlsym(l, "gpfs_init_trace"); gpfs_query_trace_fn = dlsym(l, "gpfs_query_trace"); gpfs_add_trace_fn = dlsym(l, "gpfs_add_trace"); @@ -218,16 +216,6 @@ int gpfswrap_quotactl(char *pathname, int cmd, int id, void *bufp) return gpfs_quotactl_fn(pathname, cmd, id, bufp); } -int gpfswrap_getfilesetid(char *pathname, char *name, int *idp) -{ - if (gpfs_getfilesetid_fn == NULL) { - errno = ENOSYS; - return -1; - } - - return gpfs_getfilesetid_fn(pathname, name, idp); -} - int gpfswrap_init_trace(void) { if (gpfs_init_trace_fn == NULL) { diff --git a/lib/util/gpfswrap.h b/lib/util/gpfswrap.h index 3141360a584..3823de841ea 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_getfilesetid(char *pathname, char *name, int *idp); int gpfswrap_init_trace(void); int gpfswrap_query_trace(void); void gpfswrap_add_trace(int level, const char *msg);