diff options
author | Christof Schmitt <cs@samba.org> | 2014-12-10 15:27:05 -0700 |
---|---|---|
committer | Christof Schmitt <cs@samba.org> | 2015-03-02 22:31:08 +0100 |
commit | 2cecf08298cb0e14b1520a15be89365b6e32d492 (patch) | |
tree | 39bfea109af2a535c700e3e833fbd9372ae330ab /source3/modules/gpfs.c | |
parent | e9e87d456aeb9acd36d352378b615769444809d3 (diff) | |
download | samba-2cecf08298cb0e14b1520a15be89365b6e32d492.tar.gz samba-2cecf08298cb0e14b1520a15be89365b6e32d492.tar.xz samba-2cecf08298cb0e14b1520a15be89365b6e32d492.zip |
gpfs: Rename wrapper for gpfs_get_winattrs_path
Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
Diffstat (limited to 'source3/modules/gpfs.c')
-rw-r--r-- | source3/modules/gpfs.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/source3/modules/gpfs.c b/source3/modules/gpfs.c index dbcfa32320..d0296039db 100644 --- a/source3/modules/gpfs.c +++ b/source3/modules/gpfs.c @@ -34,7 +34,8 @@ static int (*gpfs_get_realfilename_path_fn)(char *pathname, char *filenamep, 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_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 startOffset, gpfs_off64_t bytesToPrealloc); static int (*gpfs_ftruncate_fn)(int fd, gpfs_off64_t length); @@ -138,6 +139,16 @@ int gpfswrap_set_winattrs_path(char *pathname, int flags, return gpfs_set_winattrs_path_fn(pathname, flags, attrs); } +int gpfswrap_get_winattrs_path(char *pathname, struct gpfs_winattr *attrs) +{ + if (gpfs_get_winattrs_path_fn == NULL) { + errno = ENOSYS; + return -1; + } + + return gpfs_get_winattrs_path_fn(pathname, attrs); +} + bool set_gpfs_sharemode(files_struct *fsp, uint32 access_mask, uint32 share_access) { @@ -213,16 +224,6 @@ int smbd_gpfs_ftruncate(int fd, gpfs_off64_t length) return gpfs_ftruncate_fn(fd, length); } -int get_gpfs_winattrs(char *pathname,struct gpfs_winattr *attrs) -{ - if (gpfs_get_winattrs_path_fn == NULL) { - errno = ENOSYS; - return -1; - } - DEBUG(10, ("gpfs_get_winattrs_path:open call %s\n",pathname)); - return gpfs_get_winattrs_path_fn(pathname, attrs); -} - int smbd_fget_gpfs_winattrs(int fd, struct gpfs_winattr *attrs) { if (gpfs_get_winattrs_fn == NULL) { |