s3/vfs: gpfs: adapt vfs_gpfs_is_offline() to changes from 3031815f982e365be50148564d4...
authorRalph Boehme <slow@samba.org>
Mon, 17 Oct 2016 12:16:20 +0000 (14:16 +0200)
committerDavid Disseldorp <ddiss@samba.org>
Mon, 17 Oct 2016 19:28:12 +0000 (21:28 +0200)
The patchset `git log -2 3031815f982e365be50148564d47d7d5afab46e0`
missed a change to vfs_gpfs_is_offline() which is now merely a helper
function that returns true or false and mustn't call into the VFS.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Mon Oct 17 21:28:12 CEST 2016 on sn-devel-144

source3/modules/vfs_gpfs.c

index 28da8e21e46582d5b14344896a85b3c14440d7ae..89ce3b7609b2728deaa3e31f8f1162269d82aa76 100644 (file)
@@ -2007,13 +2007,12 @@ static bool vfs_gpfs_is_offline(struct vfs_handle_struct *handle,
                                return -1);
 
        if (!config->winattr) {
-               return SMB_VFS_NEXT_IS_OFFLINE(handle, fname, sbuf);
+               return false;
        }
 
        status = get_full_smb_filename(talloc_tos(), fname, &path);
        if (!NT_STATUS_IS_OK(status)) {
-               errno = map_errno_from_nt_status(status);
-               return -1;
+               return false;
        }
 
        ret = gpfswrap_get_winattrs_path(path, &attrs);
@@ -2029,7 +2028,7 @@ static bool vfs_gpfs_is_offline(struct vfs_handle_struct *handle,
        }
        DEBUG(10, ("%s is online\n", path));
        TALLOC_FREE(path);
-       return SMB_VFS_NEXT_IS_OFFLINE(handle, fname, sbuf);
+       return false;
 }
 
 static bool vfs_gpfs_fsp_is_offline(struct vfs_handle_struct *handle,