Lines Matching defs:state_file
87 char *state_file;
115 free(s->state_file);
126 if (s->state_file)
127 (void) unlink(s->state_file);
142 if (!s->state_file) {
150 if (asprintf(&s->state_file, "/run/systemd/journal/streams/%lu:%lu", (unsigned long) st.st_dev, (unsigned long) st.st_ino) < 0)
156 r = fopen_temporary(s->state_file, &f, &temp_path);
201 if (rename(temp_path, s->state_file) < 0) {
220 (void) unlink(s->state_file);
225 return log_error_errno(r, "Failed to save stream data %s: %m", s->state_file);
569 if (!stream->state_file) {
570 stream->state_file = strappend("/run/systemd/journal/streams/", fname);
571 if (!stream->state_file)
575 r = parse_env_file(stream->state_file, NEWLINE,
585 return log_error_errno(r, "Failed to read: %s", stream->state_file);