From: Jonathan Rajotte Date: Wed, 6 Dec 2017 19:08:33 +0000 (-0500) Subject: Fix: do not use hard linking X-Git-Url: http://git.efficios.com/?p=deliverable%2Flttng-ivc.git;a=commitdiff_plain;h=d49a878b72de0049cab9c1b39af363cd83720415 Fix: do not use hard linking Hard linking between devices (e.g encrypted partition and /tmp) does not work. Signed-off-by: Jonathan Rajotte --- 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"))