#######################
# These are currently in ceph-common defaults because nfs_obj_gw shared with ceph-rgw
# Enable NFS File access
+# If set to true, then ganesha is set up to export the root of the
+# Ceph filesystem, and ganesha's attribute and directory caching is disabled
+# as much as possible since libcephfs clients also caches the same
+# information.
nfs_file_gw: false
# Enable NFS Object access
nfs_obj_gw: true
# this bug: https://github.com/nfs-ganesha/nfs-ganesha/issues/217)
# ceph_nfs_bind_addr: 0.0.0.0
+# If set to true, then ganesha's attribute and directory caching is disabled
+# as much as possible. Currently, ganesha caches by default.
+# When using ganesha as CephFS's gateway, it is recommended to turn off
+# ganesha's caching as the libcephfs clients also cache the same information.
+# Note: Irrespective of this option's setting, ganesha's caching is disabled
+# when setting 'nfs_file_gw' option as true.
+ceph_nfs_disable_caching: false
+
####################
# FSAL Ceph Config #
####################
{% endif %}
}
+{% if ceph_nfs_disable_caching or nfs_file_gw %}
+CACHEINODE {
+ Dir_Max = 1;
+ Dir_Chunk = 0;
+
+ Cache_FDs = false;
+
+ NParts = 1;
+ Cache_Size = 1;
+}
+{% endif %}
+
{% if ceph_nfs_rados_backend %}
RADOS_URLS {
ceph_conf = '/etc/ceph/{{ cluster }}.conf';
SecType = sys,krb5,krb5i,krb5p;
+ Attr_Expiration_Time = 0;
+
FSAL {
Name = CEPH;
User_Id = "{{ ceph_nfs_ceph_user }}";