Lines Matching +full:sync +full:- +full:read
1 // SPDX-License-Identifier: Apache-2.0
2 // SPDX-FileCopyrightText: Copyright 2020 IBM Corporation
10 #include <systemd/sd-bus.h>
11 #include <systemd/sd-journal.h>
14 #include <phosphor-logging/lg2.hpp>
39 return value.substr(pos, value.find_last_of('"') - pos); in getOSReleaseValue()
49 auto fd = -1; in journalSync()
50 auto rc = -1; in journalSync()
51 auto wd = -1; in journalSync()
58 // Make a request to sync the journal with the SIGRTMIN+1 signal and in journalSync()
62 // Iteration #1: Requests a journal sync by killing the journald service. in journalSync()
67 // the error log from being commited until the sync completes. in journalSync()
71 // Read timestamp from synced file in journalSync()
76 // If the synced file doesn't exist, a sync request will create it. in journalSync()
87 // Only read the synced file if it exists. in journalSync()
88 // See if a sync happened by now in journalSync()
98 // Let's ask for a sync, but only once in journalSync()
103 constexpr auto JOURNAL_UNIT = "systemd-journald.service"; in journalSync()
171 // Read from the specified file descriptor until there is no new data, in journalSync()
172 // throwing away everything read since the timestamp will be read at the in journalSync()
176 while (read(fd, buffer, maxBytes) > 0) in journalSync()
180 if (fd != -1) in journalSync()
182 if (wd != -1) in journalSync()
195 -> std::map<std::string, std::string> in parse()
215 -> std::vector<std::string> in combine()