1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

vfs_gpfs: remove ENOSYS fallback from vfs_gpfs_fntimes()

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14771

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
This commit is contained in:
Ralph Boehme 2021-08-13 11:55:16 +02:00
parent 9a237e168a
commit 1bbdb81899

View File

@ -1733,8 +1733,7 @@ static int smbd_gpfs_set_times(struct files_struct *fsp,
}
rc = gpfswrap_set_times(fsp_get_io_fd(fsp), flags, gpfs_times);
if (rc != 0 && errno != ENOSYS) {
if (rc != 0) {
DBG_WARNING("gpfs_set_times() returned with error %s for %s\n",
strerror(errno),
fsp_str_dbg(fsp));
@ -1759,10 +1758,7 @@ static int vfs_gpfs_fntimes(struct vfs_handle_struct *handle,
/* Try to use gpfs_set_times if it is enabled and available */
if (config->settimes) {
ret = smbd_gpfs_set_times(fsp, ft);
if (ret == 0 || (ret == -1 && errno != ENOSYS)) {
return ret;
}
return smbd_gpfs_set_times(fsp, ft);
}
DBG_DEBUG("gpfs_set_times() not available or disabled, "