diff options
author | Christof Schmitt <cs@samba.org> | 2014-12-10 15:15:53 -0700 |
---|---|---|
committer | Christof Schmitt <cs@samba.org> | 2015-03-02 22:31:08 +0100 |
commit | fdd6078ddda15e4cc6eae4ce35774dbe94da0950 (patch) | |
tree | 1b4e3a12e6d54d2c8058ba408de830ccc31a0aad /source3 | |
parent | 5fa1ee8b7b089c67fd2fb80dd312a9a7d19c8d29 (diff) | |
download | samba-fdd6078ddda15e4cc6eae4ce35774dbe94da0950.tar.gz samba-fdd6078ddda15e4cc6eae4ce35774dbe94da0950.tar.xz samba-fdd6078ddda15e4cc6eae4ce35774dbe94da0950.zip |
gpfs: Rename wrapper for gpfs_get_realfilename_path
Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/modules/gpfs.c | 23 | ||||
-rw-r--r-- | source3/modules/vfs_gpfs.c | 4 | ||||
-rw-r--r-- | source3/modules/vfs_gpfs.h | 3 |
3 files changed, 14 insertions, 16 deletions
diff --git a/source3/modules/gpfs.c b/source3/modules/gpfs.c index e042a8993a..2b12bbe969 100644 --- a/source3/modules/gpfs.c +++ b/source3/modules/gpfs.c @@ -31,7 +31,7 @@ static int (*gpfs_set_lease_fn)(int fd, unsigned int type); static int (*gpfs_getacl_fn)(char *pathname, int flags, void *acl); static int (*gpfs_putacl_fn)(char *pathname, int flags, void *acl); static int (*gpfs_get_realfilename_path_fn)(char *pathname, char *filenamep, - int *buflen); + int *len); static int (*gpfs_set_winattrs_path_fn)(char *pathname, int flags, struct gpfs_winattr *attrs); 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); @@ -116,6 +116,16 @@ int gpfswrap_putacl(char *pathname, int flags, void *acl) return gpfs_putacl_fn(pathname, flags, acl); } +int gpfswrap_get_realfilename_path(char *pathname, char *filenamep, int *len) +{ + if (gpfs_get_realfilename_path_fn == NULL) { + errno = ENOSYS; + return -1; + } + + return gpfs_get_realfilename_path_fn(pathname, filenamep, len); +} + bool set_gpfs_sharemode(files_struct *fsp, uint32 access_mask, uint32 share_access) { @@ -191,17 +201,6 @@ int smbd_gpfs_ftruncate(int fd, gpfs_off64_t length) return gpfs_ftruncate_fn(fd, length); } -int smbd_gpfs_get_realfilename_path(char *pathname, char *filenamep, - int *buflen) -{ - if (gpfs_get_realfilename_path_fn == NULL) { - errno = ENOSYS; - return -1; - } - - return gpfs_get_realfilename_path_fn(pathname, filenamep, buflen); -} - int get_gpfs_winattrs(char *pathname,struct gpfs_winattr *attrs) { if (gpfs_get_winattrs_path_fn == NULL) { diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index a461fb3a11..52b2857fd5 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -181,8 +181,8 @@ static int vfs_gpfs_get_real_filename(struct vfs_handle_struct *handle, buflen = sizeof(real_pathname) - 1; - result = smbd_gpfs_get_realfilename_path(full_path, real_pathname, - &buflen); + result = gpfswrap_get_realfilename_path(full_path, real_pathname, + &buflen); TALLOC_FREE(full_path); diff --git a/source3/modules/vfs_gpfs.h b/source3/modules/vfs_gpfs.h index 7f5d70cd57..3b4037c722 100644 --- a/source3/modules/vfs_gpfs.h +++ b/source3/modules/vfs_gpfs.h @@ -32,11 +32,10 @@ int gpfswrap_set_share(int fd, unsigned int allow, unsigned int deny); int gpfswrap_set_lease(int fd, unsigned int type); int gpfswrap_getacl(char *pathname, int flags, void *acl); int gpfswrap_putacl(char *pathname, int flags, void *acl); +int gpfswrap_get_realfilename_path(char *pathname, char *filenamep, int *len); bool set_gpfs_sharemode(files_struct *fsp, uint32 access_mask, uint32 share_access); int set_gpfs_lease(int fd, int leasetype); -int smbd_gpfs_get_realfilename_path(char *pathname, char *filenamep, - int *buflen); int smbd_fget_gpfs_winattrs(int fd, struct gpfs_winattr *attrs); int get_gpfs_winattrs(char * pathname,struct gpfs_winattr *attrs); int set_gpfs_winattrs(char * pathname,int flags,struct gpfs_winattr *attrs); |