~xdavidwu/saf-cephfs

2df2e032e39224663d38686e5ebe01d806b2a0a7 — xdavidwu 3 years ago 95769ab
DocumentsProvider: set ceph mount timeout to 20

DocumentsUI on Pixels seems to have a timeout of 20.
Default timeout of 300 is too long, let's make it 20 for now.
To be configurable in future.
1 files changed, 1 insertions(+), 0 deletions(-)

M src/main/java/org/safcephfs/CephFSDocumentsProvider.java
M src/main/java/org/safcephfs/CephFSDocumentsProvider.java => src/main/java/org/safcephfs/CephFSDocumentsProvider.java +1 -0
@@ 154,6 154,7 @@ public class CephFSDocumentsProvider extends DocumentsProvider {
		cm = new CephMount(id);
		cm.conf_set("mon_host", mon);
		cm.conf_set("key", key);
		cm.conf_set("client_mount_timeout", "20");
		checkPermissions = settings.getBoolean("permissions", true);
		if (!checkPermissions) {
			cm.conf_set("client_permissions", "false");