diff options
author | Christof Schmitt <cs@samba.org> | 2014-12-10 15:29:19 -0700 |
---|---|---|
committer | Christof Schmitt <cs@samba.org> | 2015-03-02 22:31:08 +0100 |
commit | 4d57c20ba8450b3eb4fdf0bbd9c922ae5d02312b (patch) | |
tree | 94e08ea83cb907fce1c9a1c3728da14f1376c339 | |
parent | 2cecf08298cb0e14b1520a15be89365b6e32d492 (diff) | |
download | samba-4d57c20ba8450b3eb4fdf0bbd9c922ae5d02312b.tar.gz samba-4d57c20ba8450b3eb4fdf0bbd9c922ae5d02312b.tar.xz samba-4d57c20ba8450b3eb4fdf0bbd9c922ae5d02312b.zip |
gpfs: Rename wrapper for gpfs_get_winattrs
Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
-rw-r--r-- | source3/modules/gpfs.c | 20 | ||||
-rw-r--r-- | source3/modules/vfs_gpfs.c | 2 | ||||
-rw-r--r-- | source3/modules/vfs_gpfs.h | 2 |
3 files changed, 12 insertions, 12 deletions
diff --git a/source3/modules/gpfs.c b/source3/modules/gpfs.c index d0296039db..bcf5d2498a 100644 --- a/source3/modules/gpfs.c +++ b/source3/modules/gpfs.c @@ -149,6 +149,16 @@ int gpfswrap_get_winattrs_path(char *pathname, struct gpfs_winattr *attrs) return gpfs_get_winattrs_path_fn(pathname, attrs); } +int gpfswrap_get_winattrs(int fd, struct gpfs_winattr *attrs) +{ + if (gpfs_get_winattrs_fn == NULL) { + errno = ENOSYS; + return -1; + } + + return gpfs_get_winattrs_fn(fd, attrs); +} + bool set_gpfs_sharemode(files_struct *fsp, uint32 access_mask, uint32 share_access) { @@ -224,16 +234,6 @@ int smbd_gpfs_ftruncate(int fd, gpfs_off64_t length) return gpfs_ftruncate_fn(fd, length); } -int smbd_fget_gpfs_winattrs(int fd, struct gpfs_winattr *attrs) -{ - if (gpfs_get_winattrs_fn == NULL) { - errno = ENOSYS; - return -1; - } - DEBUG(10, ("gpfs_get_winattrs:open call %d\n", fd)); - return gpfs_get_winattrs_fn(fd, attrs); -} - int smbd_gpfs_prealloc(int fd, gpfs_off64_t start, gpfs_off64_t bytes) { if (gpfs_prealloc_fn == NULL) { diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index 34a2d044b0..a24f5d5406 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -1616,7 +1616,7 @@ static int vfs_gpfs_fstat(struct vfs_handle_struct *handle, return 0; } - ret = smbd_fget_gpfs_winattrs(fsp->fh->fd, &attrs); + ret = gpfswrap_get_winattrs(fsp->fh->fd, &attrs); if (ret == 0) { sbuf->st_ex_calculated_birthtime = false; sbuf->st_ex_btime.tv_sec = attrs.creationTime.tv_sec; diff --git a/source3/modules/vfs_gpfs.h b/source3/modules/vfs_gpfs.h index afe2da4e76..d4b584579f 100644 --- a/source3/modules/vfs_gpfs.h +++ b/source3/modules/vfs_gpfs.h @@ -36,10 +36,10 @@ int gpfswrap_get_realfilename_path(char *pathname, char *filenamep, int *len); int gpfswrap_set_winattrs_path(char *pathname, 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); bool set_gpfs_sharemode(files_struct *fsp, uint32 access_mask, uint32 share_access); int set_gpfs_lease(int fd, int leasetype); -int smbd_fget_gpfs_winattrs(int fd, struct gpfs_winattr *attrs); int smbd_gpfs_prealloc(int fd, gpfs_off64_t start, gpfs_off64_t bytes); int smbd_gpfs_ftruncate(int fd, gpfs_off64_t length); int get_gpfs_quota(const char *pathname, int type, int id, |