From a0bc1f9d430aec7a5c3974f51689248390b2e469 Mon Sep 17 00:00:00 2001 From: Christof Schmitt Date: Mon, 14 May 2018 14:35:28 -0700 Subject: [PATCH] gpfswrap: Remove unused gpfs_prealloc wrapper Signed-off-by: Christof Schmitt Reviewed-by: Jeremy Allison --- 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 0632ee20757..32be942bc7c 100644 --- a/lib/util/gpfswrap.c +++ b/lib/util/gpfswrap.c @@ -34,7 +34,6 @@ static int (*gpfs_set_winattrs_fn)(int fd, int flags, static int (*gpfs_get_winattrs_path_fn)(char *pathname, struct gpfs_winattr *attrs); static int (*gpfs_get_winattrs_fn)(int fd, struct gpfs_winattr *attrs); -static int (*gpfs_prealloc_fn)(int fd, gpfs_off64_t start, gpfs_off64_t bytes); static int (*gpfs_ftruncate_fn)(int fd, gpfs_off64_t length); static int (*gpfs_lib_init_fn)(int flags); static int (*gpfs_set_times_path_fn)(char *pathname, int flags, @@ -68,7 +67,6 @@ int gpfswrap_init(void) gpfs_set_winattrs_fn = dlsym(l, "gpfs_set_winattrs"); gpfs_get_winattrs_path_fn = dlsym(l, "gpfs_get_winattrs_path"); gpfs_get_winattrs_fn = dlsym(l, "gpfs_get_winattrs"); - gpfs_prealloc_fn = dlsym(l, "gpfs_prealloc"); gpfs_ftruncate_fn = dlsym(l, "gpfs_ftruncate"); gpfs_lib_init_fn = dlsym(l, "gpfs_lib_init"); gpfs_set_times_path_fn = dlsym(l, "gpfs_set_times_path"); @@ -173,16 +171,6 @@ int gpfswrap_get_winattrs(int fd, struct gpfs_winattr *attrs) return gpfs_get_winattrs_fn(fd, attrs); } -int gpfswrap_prealloc(int fd, gpfs_off64_t start, gpfs_off64_t bytes) -{ - if (gpfs_prealloc_fn == NULL) { - errno = ENOSYS; - return -1; - } - - return gpfs_prealloc_fn(fd, start, bytes); -} - int gpfswrap_ftruncate(int fd, gpfs_off64_t length) { if (gpfs_ftruncate_fn == NULL) { diff --git a/lib/util/gpfswrap.h b/lib/util/gpfswrap.h index 1c9c64f7e8c..40202104064 100644 --- a/lib/util/gpfswrap.h +++ b/lib/util/gpfswrap.h @@ -37,7 +37,6 @@ int gpfswrap_set_winattrs_path(char *pathname, int flags, int gpfswrap_set_winattrs(int fd, int flags, struct gpfs_winattr *attrs); int gpfswrap_get_winattrs_path(char *pathname, struct gpfs_winattr *attrs); int gpfswrap_get_winattrs(int fd, struct gpfs_winattr *attrs); -int gpfswrap_prealloc(int fd, gpfs_off64_t start, gpfs_off64_t bytes); int gpfswrap_ftruncate(int fd, gpfs_off64_t length); int gpfswrap_lib_init(int flags); int gpfswrap_set_times_path(char *pathname, int flags, -- 2.34.1