]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
VFS: ceph: Add SMB_VFS_FCHFLAGS implementation
authorNoel Power <noel.power@suse.com>
Fri, 11 Jun 2021 14:45:38 +0000 (15:45 +0100)
committerNoel Power <npower@samba.org>
Tue, 29 Jun 2021 08:21:37 +0000 (08:21 +0000)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_ceph.c

index 0e7f2d89c887994f7b136e1a3d8c8e59a3678e9e..fbe0fde20614b692842c3ae10d1a2c9b74ca5318 100644 (file)
@@ -1265,6 +1265,14 @@ static int cephwrap_chflags(struct vfs_handle_struct *handle,
        return -1;
 }
 
+static int cephwrap_fchflags(struct vfs_handle_struct *handle,
+                       struct files_struct *fsp,
+                       unsigned int flags)
+{
+       errno = ENOSYS;
+       return -1;
+}
+
 static int cephwrap_get_real_filename(struct vfs_handle_struct *handle,
                                     const struct smb_filename *path,
                                     const char *name,
@@ -1636,6 +1644,7 @@ static struct vfs_fn_pointers ceph_fns = {
        .mknodat_fn = cephwrap_mknodat,
        .realpath_fn = cephwrap_realpath,
        .chflags_fn = cephwrap_chflags,
+       .fchflags_fn = cephwrap_fchflags,
        .get_real_filename_fn = cephwrap_get_real_filename,
        .connectpath_fn = cephwrap_connectpath,