From d49a878b72de0049cab9c1b39af363cd83720415 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Wed, 6 Dec 2017 14:08:33 -0500 Subject: [PATCH] Fix: do not use hard linking Hard linking between devices (e.g encrypted partition and /tmp) does not work. Signed-off-by: Jonathan Rajotte --- lttng_ivc/utils/runtime.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lttng_ivc/utils/runtime.py b/lttng_ivc/utils/runtime.py index 6c9f04c..7166176 100644 --- a/lttng_ivc/utils/runtime.py +++ b/lttng_ivc/utils/runtime.py @@ -295,6 +295,7 @@ class Runtime(object): # value. self.unload_test_module(False) - # Copy the lttng_home used at runtime using hardlink to prevent useless - # data duplication - shutil.copytree(self.lttng_home, self.__post_runtime_lttng_home_path, copy_function=os.link) + # Hard linking would be nice here but it could be a problem when we use + # a tmpdir on another device. Let's consider we have unlimited space. + shutil.copytree(self.lttng_home, self.__post_runtime_lttng_home_path, + ignore=shutil.ignore_patterns(".lttng")) -- 2.34.1