projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move completed trace archive chunks to an "archives" sub-folder
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
rotate.c
diff --git
a/src/bin/lttng-sessiond/rotate.c
b/src/bin/lttng-sessiond/rotate.c
index 7abfaed644b1e372a95ed623de3ade1eb7ba9fa3..c3413a2cab7b2e0d89ae2853a9773447de87572c 100644
(file)
--- a/
src/bin/lttng-sessiond/rotate.c
+++ b/
src/bin/lttng-sessiond/rotate.c
@@
-218,7
+218,7
@@
int rename_completed_chunk(struct ltt_session *session, time_t ts)
* session_root_path, so we need to create the chunk folder
* and move the domain-specific folders inside it.
*/
* session_root_path, so we need to create the chunk folder
* and move the domain-specific folders inside it.
*/
- ret = snprintf(new_path, sizeof(new_path), "%s/%s-%s-%" PRIu64,
+ ret = snprintf(new_path, sizeof(new_path), "%s/
archives/
%s-%s-%" PRIu64,
session->rotation_chunk.current_rotate_path,
start_time,
datetime, session->current_archive_id);
session->rotation_chunk.current_rotate_path,
start_time,
datetime, session->current_archive_id);
@@
-275,7
+275,7
@@
int rename_completed_chunk(struct ltt_session *session, time_t ts)
ret = -1;
goto end;
}
ret = -1;
goto end;
}
- ret = snprintf(new_path, sizeof(new_path), "%s/%s-%s-%" PRIu64,
+ ret = snprintf(new_path, sizeof(new_path), "%s/
archives/
%s-%s-%" PRIu64,
session_get_base_path(session),
start_datetime,
datetime, session->current_archive_id);
session_get_base_path(session),
start_datetime,
datetime, session->current_archive_id);
This page took
0.038179 seconds
and
4
git commands to generate.