From: Christof Schmitt Date: Mon, 6 Jan 2020 21:23:41 +0000 (-0700) Subject: vfs_gpfs: Remove logging for unsupported file system X-Git-Tag: ldb-2.1.0~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f03c4485a2e50d496875fb157d5405e2afa7a0f5;p=thirdparty%2Fsamba.git vfs_gpfs: Remove logging for unsupported file system The gpfs_set_share API call has been around for a long time and definitely all supported GPFS versions have it. Remove the check and fallback for old versions without this API. Signed-off-by: Christof Schmitt Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index 760bb892ef9..25ec8f158f8 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -132,15 +132,8 @@ static bool set_gpfs_sharemode(files_struct *fsp, uint32_t access_mask, result = gpfswrap_set_share(fsp->fh->fd, allow, deny); if (result != 0) { - if (errno == ENOSYS) { - DEBUG(5, ("VFS module vfs_gpfs loaded, but gpfs " - "set_share function support not available. " - "Allowing access\n")); - return True; - } else { - DEBUG(10, ("gpfs_set_share failed: %s\n", - strerror(errno))); - } + DEBUG(10, ("gpfs_set_share failed: %s\n", + strerror(errno))); } return (result == 0);