rename works on the relay
[deliverable/lttng-tools.git] / src / common / sessiond-comm / sessiond-comm.h
index 5664254020918194897879cc585950016275182e..c9c39d1f1e9341ccbff97f40487b833707cdab3d 100644 (file)
@@ -126,7 +126,10 @@ enum lttcomm_relayd_command {
        RELAYD_STREAMS_SENT                 = 16,
        /* Ask the relay to reset the metadata trace file (2.8+) */
        RELAYD_RESET_METADATA               = 17,
-       RELAYD_ROTATE                       = 18,
+       /* Ask the relay to rotate a stream file (2.11+) */
+       RELAYD_ROTATE_STREAM                = 18,
+       /* Rename a chunk after the rotation is completed (2.11+) */
+       RELAYD_ROTATE_RENAME                = 19,
 };
 
 /*
@@ -547,6 +550,15 @@ struct lttcomm_consumer_msg {
                        uint64_t relayd_id; /* Relayd id if apply. */
                        uint64_t key;
                } LTTNG_PACKED rotate_channel;
+               struct {
+                       char current_path[PATH_MAX];
+                       char new_path[PATH_MAX];
+                       uint64_t relayd_id; /* Relayd id if apply. */
+                       uint64_t session_id;
+                       uint32_t create; /* Create new_path before move. */
+                       uint32_t uid;
+                       uint32_t gid;
+               } LTTNG_PACKED rotate_rename;
        } u;
 } LTTNG_PACKED;
 
This page took 0.029796 seconds and 5 git commands to generate.