Fix: do not use hard linking
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 6 Dec 2017 19:08:33 +0000 (14:08 -0500)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 6 Dec 2017 19:08:33 +0000 (14:08 -0500)
Hard linking between devices (e.g encrypted partition and /tmp) does not work.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
lttng_ivc/utils/runtime.py

index 6c9f04c04e0deb77c3a8df035113b6d9fbf8b7b3..716617608c50879f98b6a9ea80146e7ed3a8f1e1 100644 (file)
@@ -295,6 +295,7 @@ class Runtime(object):
         # value.
         self.unload_test_module(False)
 
         # 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"))
This page took 0.023988 seconds and 5 git commands to generate.