From: Jérémie Galarneau Date: Wed, 18 Sep 2019 16:34:07 +0000 (-0400) Subject: Add a copy method to the trace chunk interface X-Git-Tag: v2.12.0-rc1~367 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;ds=sidebyside;h=1a414e3a88844a96aa23842822150ac44c391ed2;hp=1a414e3a88844a96aa23842822150ac44c391ed2;p=lttng-tools.git Add a copy method to the trace chunk interface Trace chunks may now be copied. This will allow, in a follow-up fix, streams to use the trace chunk facilities without extending the life-time of an existing chunk. However, note that the copy of an "owner" chunk returns a "user" chunk. While this may be surprising at first, it makes no sense for two "owner" trace chunks to point to the same location. In such a case, it would be legal for both trace chunks to arbitrarily modify their underlying sub-folder hierarchies without coordinating among themselves. This would break the existing "move to completed" close command, for instance. Signed-off-by: Jérémie Galarneau ---