]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common/options: changed default immutable object cache path
authorJason Dillaman <dillaman@redhat.com>
Mon, 20 Jul 2020 16:57:57 +0000 (12:57 -0400)
committerNathan Cutler <ncutler@suse.com>
Sat, 15 Aug 2020 13:17:38 +0000 (15:17 +0200)
Switch the default path for the immutable object cache from "/tmp" to
"/tmp/ceph_immutable_object_cache" to prevent the deletion of all
files in the "/tmp" directory and sub-directories for unconfigured
daemons.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit eeecc1860f81129347c648a6cbd4a8a78ff4c636)

src/common/options.cc

index 3dac60ea5e3644d4c3153ac79cd4344dc403df22..a49d0f7d763db7ad1d1942835e9ed62b346dff32 100644 (file)
@@ -7596,7 +7596,7 @@ static std::vector<Option> get_rbd_mirror_options() {
 static std::vector<Option> get_immutable_object_cache_options() {
   return std::vector<Option>({
     Option("immutable_object_cache_path", Option::TYPE_STR, Option::LEVEL_ADVANCED)
-    .set_default("/tmp")
+    .set_default("/tmp/ceph_immutable_object_cache")
     .set_description("immutable object cache data dir"),
 
     Option("immutable_object_cache_sock", Option::TYPE_STR, Option::LEVEL_ADVANCED)