vfs_gpfs: Remove logging for unsupported file system
authorChristof Schmitt <cs@samba.org>
Mon, 6 Jan 2020 21:23:41 +0000 (14:23 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 8 Jan 2020 00:01:37 +0000 (00:01 +0000)
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 <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_gpfs.c

index 760bb892ef97b91182e38da60ce9b5cf13d89590..25ec8f158f889e5366ba1f8f41dd534c15c8b680 100644 (file)
@@ -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);