Lines Matching defs:de
160 struct dirent *de;
180 FOREACH_DIRENT_ALL(de, d, r = -errno; goto finish) {
190 if (fstatat(dirfd(d), de->d_name, &st, AT_SYMLINK_NOFOLLOW) < 0) {
191 log_debug_errno(errno, "Failed to stat file %s while vacuuming, ignoring: %m", de->d_name);
198 q = strlen(de->d_name);
200 if (endswith(de->d_name, ".journal")) {
210 if (de->d_name[q-8-16-1] != '-' ||
211 de->d_name[q-8-16-1-16-1] != '-' ||
212 de->d_name[q-8-16-1-16-1-32-1] != '@') {
217 p = strdup(de->d_name);
223 de->d_name[q-8-16-1-16-1] = 0;
224 if (sd_id128_from_string(de->d_name + q-8-16-1-16-1-32, &seqnum_id) < 0) {
229 if (sscanf(de->d_name + q-8-16-1-16, "%16llx-%16llx.journal", &seqnum, &realtime) != 2) {
236 } else if (endswith(de->d_name, ".journal~")) {
246 if (de->d_name[q-1-8-16-1] != '-' ||
247 de->d_name[q-1-8-16-1-16-1] != '@') {
252 p = strdup(de->d_name);
258 if (sscanf(de->d_name + q-1-8-16-1-16, "%16llx-%16llx.journal~", &realtime, &tmp) != 2) {
266 log_debug("Not vacuuming unknown file %s.", de->d_name);