From: Christof Schmitt Date: Tue, 4 Feb 2025 22:09:56 +0000 (-0700) Subject: gpfswrap: Remove unused gpfs_set_winattrs_path X-Git-Tag: tdb-1.4.13~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edfd45a8f8ac254ac8e2340d1125ec1c2348e7ce;p=thirdparty%2Fsamba.git gpfswrap: Remove unused gpfs_set_winattrs_path Signed-off-by: Christof Schmitt Reviewed-by: Ralph Boehme --- diff --git a/lib/util/gpfswrap.c b/lib/util/gpfswrap.c index 222185af4da..8012e29163c 100644 --- a/lib/util/gpfswrap.c +++ b/lib/util/gpfswrap.c @@ -29,9 +29,6 @@ static int (*gpfs_get_realfilename_path_fn)(const char *pathname, char *filenamep, int *len); static int (*gpfs_register_cifs_export_fn)(void); -static int (*gpfs_set_winattrs_path_fn)(const char *pathname, - int flags, - struct gpfs_winattr *attrs); static int (*gpfs_set_winattrs_fn)(int fd, int flags, struct gpfs_winattr *attrs); static int (*gpfs_get_winattrs_fn)(int fd, struct gpfs_winattr *attrs); @@ -69,7 +66,6 @@ int gpfswrap_init(void) gpfs_putacl_fn = dlsym(l, "gpfs_putacl"); gpfs_get_realfilename_path_fn = dlsym(l, "gpfs_get_realfilename_path"); gpfs_register_cifs_export_fn = dlsym(l, "gpfs_register_cifs_export"); - gpfs_set_winattrs_path_fn = dlsym(l, "gpfs_set_winattrs_path"); gpfs_set_winattrs_fn = dlsym(l, "gpfs_set_winattrs"); gpfs_get_winattrs_fn = dlsym(l, "gpfs_get_winattrs"); gpfs_ftruncate_fn = dlsym(l, "gpfs_ftruncate"); @@ -147,18 +143,6 @@ int gpfswrap_register_cifs_export(void) return gpfs_register_cifs_export_fn(); } -int gpfswrap_set_winattrs_path(const char *pathname, - int flags, - struct gpfs_winattr *attrs) -{ - if (gpfs_set_winattrs_path_fn == NULL) { - errno = ENOSYS; - return -1; - } - - return gpfs_set_winattrs_path_fn(pathname, flags, attrs); -} - int gpfswrap_set_winattrs(int fd, int flags, struct gpfs_winattr *attrs) { if (gpfs_set_winattrs_fn == NULL) { diff --git a/lib/util/gpfswrap.h b/lib/util/gpfswrap.h index f33a3bc3e16..c1d87b098c5 100644 --- a/lib/util/gpfswrap.h +++ b/lib/util/gpfswrap.h @@ -35,9 +35,6 @@ int gpfswrap_get_realfilename_path(const char *pathname, char *filenamep, int *len); int gpfswrap_register_cifs_export(void); -int gpfswrap_set_winattrs_path(const char *pathname, - int flags, - struct gpfs_winattr *attrs); int gpfswrap_set_winattrs(int fd, int flags, struct gpfs_winattr *attrs); int gpfswrap_get_winattrs(int fd, struct gpfs_winattr *attrs); int gpfswrap_ftruncate(int fd, gpfs_off64_t length);