From 58a1a45a7dac0be7ac5420a66e9fa4d5b2565131 Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Tue, 12 Jan 2016 23:01:02 +0800 Subject: [PATCH] java/test: update for libcephfs permission check libcephfs permission check does not allow some operations for non-root userm, disable the permission check for mount tests. Signed-off-by: Yan, Zheng --- src/java/test/com/ceph/fs/CephMountCreateTest.java | 1 + src/java/test/com/ceph/fs/CephMountTest.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/java/test/com/ceph/fs/CephMountCreateTest.java b/src/java/test/com/ceph/fs/CephMountCreateTest.java index 9df9342571fd3..fc2bafd60d5f2 100644 --- a/src/java/test/com/ceph/fs/CephMountCreateTest.java +++ b/src/java/test/com/ceph/fs/CephMountCreateTest.java @@ -44,6 +44,7 @@ public class CephMountCreateTest { CephMount mount = new CephMount("admin"); if (conf_file != null) mount.conf_read_file(conf_file); + mount.conf_set("client_permissions", "0"); mount.mount(root); return mount; } diff --git a/src/java/test/com/ceph/fs/CephMountTest.java b/src/java/test/com/ceph/fs/CephMountTest.java index 1a3e568bb2bfa..c952c0c9422cb 100644 --- a/src/java/test/com/ceph/fs/CephMountTest.java +++ b/src/java/test/com/ceph/fs/CephMountTest.java @@ -47,6 +47,7 @@ public class CephMountTest { String conf_file = System.getProperty("CEPH_CONF_FILE"); if (conf_file != null) mount.conf_read_file(conf_file); + mount.conf_set("client_permissions", "0"); mount.mount(null); -- 2.39.5