vfs_glusterfs: Enable caching of selinux xattr by default
authorAnoop C S <anoopcs@redhat.com>
Sun, 31 May 2020 17:00:53 +0000 (22:30 +0530)
committerAnoop C S <anoopcs@samba.org>
Wed, 17 Jun 2020 08:23:33 +0000 (08:23 +0000)
Signed-off-by: Anoop C S <anoopcs@redhat.com>
Reviewed-by: Guenther Deschner <gd@samba.org>
Autobuild-User(master): Anoop C S <anoopcs@samba.org>
Autobuild-Date(master): Wed Jun 17 08:23:33 UTC 2020 on sn-devel-184

source3/modules/vfs_glusterfs.c

index ff5382af9fb0bcc765b4c46bf5a4bfed15304cf5..bf7244ea3a5c16aa37eab21f216da02fe52a8874 100644 (file)
@@ -333,6 +333,12 @@ static int vfs_gluster_connect(struct vfs_handle_struct *handle,
                goto done;
        }
 
+       ret = glfs_set_xlator_option(fs, "*-md-cache", "cache-selinux",
+                                    "true");
+       if (ret < 0) {
+               DEBUG(0, ("%s: Failed to set xlator options\n", volume));
+               goto done;
+       }
 
        ret = glfs_set_xlator_option(fs, "*-snapview-client",
                                     "snapdir-entry-path",