From 344a817463684b6388aa79ee8234d58dc40b1f10 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 27 Feb 2014 21:37:54 +0000 Subject: When snapshotting datadir, don't cross mounts This should fix problems with snapshotting datadir when there is a FUSE mount in there, for example. --- yarn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yarn b/yarn index af25d21..f2b48b5 100755 --- a/yarn +++ b/yarn @@ -454,7 +454,7 @@ class YarnRunner(cliapp.Application): def snapshot_datadir(self, tempdir, datadir, scenario, step_number, step): snapshot = self.snapshot_dir(tempdir, scenario, step, step_number) - cliapp.runcmd(['cp', '-a', datadir, snapshot]) + cliapp.runcmd(['cp', '-ax', datadir, snapshot]) def nice(self, name): # Quote a scenario or step name so it forms a nice filename. -- cgit v1.2.1