diff options
author | Michael Adam <obnox@samba.org> | 2014-07-17 23:35:58 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2014-07-24 11:56:09 +0200 |
commit | d87d13f4c2a77c03bbffcd0fe4fc9464d9024cae (patch) | |
tree | 25f92ae8644217d47865fb0c15ecf930eb878eef | |
parent | 16a040f8ef7f2f594505ef07e6f9b77df8f1d725 (diff) | |
download | samba-d87d13f4c2a77c03bbffcd0fe4fc9464d9024cae.tar.gz samba-d87d13f4c2a77c03bbffcd0fe4fc9464d9024cae.tar.xz samba-d87d13f4c2a77c03bbffcd0fe4fc9464d9024cae.zip |
s3:vfs:gpfs: remove all writing uses of stat_ex.vfs_private from vfs_gpfs.
Now that the vfs_private cache is never read in vfs_gpfs, there is
no need any more to write it.
With this change, vfs_gpfs does not use vfs_private any more.
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
-rw-r--r-- | source3/modules/vfs_gpfs.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index 8049cb779b..073060cf7c 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -1590,7 +1590,6 @@ static int vfs_gpfs_stat(struct vfs_handle_struct *handle, smb_fname->st.st_ex_calculated_birthtime = false; smb_fname->st.st_ex_btime.tv_sec = attrs.creationTime.tv_sec; smb_fname->st.st_ex_btime.tv_nsec = attrs.creationTime.tv_nsec; - smb_fname->st.vfs_private = attrs.winAttrs; } return 0; } @@ -1622,7 +1621,6 @@ static int vfs_gpfs_fstat(struct vfs_handle_struct *handle, sbuf->st_ex_calculated_birthtime = false; sbuf->st_ex_btime.tv_sec = attrs.creationTime.tv_sec; sbuf->st_ex_btime.tv_nsec = attrs.creationTime.tv_nsec; - sbuf->vfs_private = attrs.winAttrs; } return 0; } @@ -1668,7 +1666,6 @@ static int vfs_gpfs_lstat(struct vfs_handle_struct *handle, smb_fname->st.st_ex_calculated_birthtime = false; smb_fname->st.st_ex_btime.tv_sec = attrs.creationTime.tv_sec; smb_fname->st.st_ex_btime.tv_nsec = attrs.creationTime.tv_nsec; - smb_fname->st.vfs_private = attrs.winAttrs; } return 0; } @@ -2143,7 +2140,6 @@ static ssize_t vfs_gpfs_pread(vfs_handle_struct *handle, files_struct *fsp, ret = SMB_VFS_NEXT_PREAD(handle, fsp, data, n, offset); if ((ret != -1) && was_offline) { - fsp->fsp_name->st.vfs_private &= ~GPFS_WINATTR_OFFLINE; notify_fname(handle->conn, NOTIFY_ACTION_MODIFIED, FILE_NOTIFY_CHANGE_ATTRIBUTES, fsp->fsp_name->base_name); @@ -2211,7 +2207,6 @@ static ssize_t vfs_gpfs_pread_recv(struct tevent_req *req, int *err) *err = state->err; if ((state->ret != -1) && state->was_offline) { - fsp->fsp_name->st.vfs_private &= ~GPFS_WINATTR_OFFLINE; DEBUG(10, ("sending notify\n")); notify_fname(fsp->conn, NOTIFY_ACTION_MODIFIED, FILE_NOTIFY_CHANGE_ATTRIBUTES, @@ -2233,7 +2228,6 @@ static ssize_t vfs_gpfs_pwrite(vfs_handle_struct *handle, files_struct *fsp, ret = SMB_VFS_NEXT_PWRITE(handle, fsp, data, n, offset); if ((ret != -1) && was_offline) { - fsp->fsp_name->st.vfs_private &= ~GPFS_WINATTR_OFFLINE; notify_fname(handle->conn, NOTIFY_ACTION_MODIFIED, FILE_NOTIFY_CHANGE_ATTRIBUTES, fsp->fsp_name->base_name); @@ -2302,7 +2296,6 @@ static ssize_t vfs_gpfs_pwrite_recv(struct tevent_req *req, int *err) *err = state->err; if ((state->ret != -1) && state->was_offline) { - fsp->fsp_name->st.vfs_private &= ~GPFS_WINATTR_OFFLINE; DEBUG(10, ("sending notify\n")); notify_fname(fsp->conn, NOTIFY_ACTION_MODIFIED, FILE_NOTIFY_CHANGE_ATTRIBUTES, |