From: Noel Power Date: Fri, 11 Jun 2021 14:46:07 +0000 (+0100) Subject: VFS: glusterfs: Add SMB_VFS_FCHFLAGS implementation X-Git-Tag: tevent-0.11.0~127 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6c45ba03e897bd9c97fa718ff29f0986214207e;p=thirdparty%2Fsamba.git VFS: glusterfs: Add SMB_VFS_FCHFLAGS implementation Signed-off-by: Noel Power Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_glusterfs.c b/source3/modules/vfs_glusterfs.c index ff19de53eea..6dc31f2ae45 100644 --- a/source3/modules/vfs_glusterfs.c +++ b/source3/modules/vfs_glusterfs.c @@ -2002,6 +2002,14 @@ static int vfs_gluster_chflags(struct vfs_handle_struct *handle, return -1; } +static int vfs_gluster_fchflags(struct vfs_handle_struct *handle, + struct files_struct *fsp, + unsigned int flags) +{ + errno = ENOSYS; + return -1; +} + static int vfs_gluster_get_real_filename(struct vfs_handle_struct *handle, const struct smb_filename *path, const char *name, @@ -2373,6 +2381,7 @@ static struct vfs_fn_pointers glusterfs_fns = { .mknodat_fn = vfs_gluster_mknodat, .realpath_fn = vfs_gluster_realpath, .chflags_fn = vfs_gluster_chflags, + .fchflags_fn = vfs_gluster_fchflags, .file_id_create_fn = NULL, .fstreaminfo_fn = NULL, .get_real_filename_fn = vfs_gluster_get_real_filename,