/systemd-251/src/journal/ |
D | managed-journal-file.c | 165 assert(f->file->fd >= 0); in managed_journal_file_set_offline_internal() 166 assert(f->file->header); in managed_journal_file_set_offline_internal() 169 switch (f->file->offline_state) { in managed_journal_file_set_offline_internal() 171 … if (!__sync_bool_compare_and_swap(&f->file->offline_state, OFFLINE_CANCEL, OFFLINE_DONE)) in managed_journal_file_set_offline_internal() 176 …if (!__sync_bool_compare_and_swap(&f->file->offline_state, OFFLINE_AGAIN_FROM_SYNCING, OFFLINE_SYN… in managed_journal_file_set_offline_internal() 181 …if (!__sync_bool_compare_and_swap(&f->file->offline_state, OFFLINE_AGAIN_FROM_OFFLINING, OFFLINE_S… in managed_journal_file_set_offline_internal() 186 if (f->file->archive) { in managed_journal_file_set_offline_internal() 187 (void) managed_journal_file_truncate(f->file); in managed_journal_file_set_offline_internal() 188 (void) managed_journal_file_punch_holes(f->file); in managed_journal_file_set_offline_internal() 191 (void) fsync(f->file->fd); in managed_journal_file_set_offline_internal() [all …]
|
D | test-journal.c | 48 assert_se(journal_file_append_entry(f->file, &ts, NULL, &iovec, 1, NULL, NULL, NULL) == 0); in TEST() 51 assert_se(journal_file_append_entry(f->file, &ts, NULL, &iovec, 1, NULL, NULL, NULL) == 0); in TEST() 54 …assert_se(journal_file_append_entry(f->file, &ts, &fake_boot_id, &iovec, 1, NULL, NULL, NULL) == 0… in TEST() 57 journal_file_append_tag(f->file); in TEST() 59 journal_file_dump(f->file); in TEST() 61 assert_se(journal_file_next_entry(f->file, 0, DIRECTION_DOWN, &o, &p) == 1); in TEST() 64 assert_se(journal_file_next_entry(f->file, p, DIRECTION_DOWN, &o, &p) == 1); in TEST() 67 assert_se(journal_file_next_entry(f->file, p, DIRECTION_DOWN, &o, &p) == 1); in TEST() 71 assert_se(journal_file_next_entry(f->file, p, DIRECTION_DOWN, &o, &p) == 0); in TEST() 73 assert_se(journal_file_next_entry(f->file, 0, DIRECTION_DOWN, &o, &p) == 1); in TEST() [all …]
|
D | test-journal-interleaving.c | 23 _noreturn_ static void log_assert_errno(const char *text, int error, const char *file, int line, co… in log_assert_errno() argument 24 log_internal(LOG_CRIT, error, file, line, func, in log_assert_errno() 25 "'%s' failed at %s:%u (%s): %m", text, file, line, func); in log_assert_errno() 69 assert_ret(journal_file_append_entry(f->file, &ts, NULL, iovec, 1, seqnum, NULL, NULL)); in append_number() 231 assert_se(one->file->header->state == STATE_ONLINE); in TEST() 232 assert_se(!sd_id128_equal(one->file->header->file_id, one->file->header->machine_id)); in TEST() 233 assert_se(!sd_id128_equal(one->file->header->file_id, one->file->header->boot_id)); in TEST() 234 assert_se(sd_id128_equal(one->file->header->file_id, one->file->header->seqnum_id)); in TEST() 236 memcpy(&seqnum_id, &one->file->header->seqnum_id, sizeof(sd_id128_t)); in TEST() 241 assert_se(two->file->header->state == STATE_ONLINE); in TEST() [all …]
|
/systemd-251/tools/ |
D | update-dbus-docs.py | 45 def print_method(declarations, elem, *, prefix, file, is_signal=False): argument 56 print(f'''{prefix}@{anno_name}("{anno_value}")''', file=file) 58 print(f'''{prefix}{name}(''', file=file, end='') 66 print(f'method {name}: argument {num+1} has no name', file=sys.stderr) 72 print(f'''{lead if num > 0 else ''}{direction:3} {type} {argname}''', file=file, end='') 74 print(f'''{lead if num > 0 else ''}{type} {argname}''', file=file, end='') 76 print(f');', file=file) 91 def print_property(declarations, elem, *, prefix, file): argument 105 print(f'''{prefix}@{anno_name}("{anno_value}")''', file=file) 108 print(f'''{prefix}{access} {type} {name} = {value_ellipsis(type)};''', file=file) [all …]
|
/systemd-251/src/basic/ |
D | log.c | 377 const char *file, in write_to_console() argument 419 (void) snprintf(location, sizeof location, "%s%s:%i%s: ", lon, file, line, loff); in write_to_console() 454 const char *file, in write_to_syslog() argument 515 const char *file, in write_to_kmsg() argument 560 const char *file, int line, const char *func, in log_do_header() argument 581 isempty(file) ? "" : "CODE_FILE=", in log_do_header() 582 isempty(file) ? "" : file, in log_do_header() 583 isempty(file) ? "" : "\n", in log_do_header() 608 const char *file, in write_to_journal() argument 622 …log_do_header(header, sizeof(header), level, error, file, line, func, object_field, object, extra_… in write_to_journal() [all …]
|
D | log.h | 91 const char *file, 103 const char *file, 111 const char *file, 120 const char *file, 133 const char *file, 145 const char *file, 152 const char *file, 168 const char *file, 178 const char *file, 186 const char *file, [all …]
|
/systemd-251/src/test/ |
D | test-terminal-util.c | 41 _cleanup_fclose_ FILE *file = NULL; in TEST() local 46 assert_se(fmkostemp_safe(name, "r+", &file) == 0); in TEST() 48 assert_se(fputs("c\n", file) >= 0); in TEST() 49 rewind(file); in TEST() 50 assert_se(read_one_char(file, &r, 1000000, &need_nl) >= 0); in TEST() 53 assert_se(read_one_char(file, &r, 1000000, &need_nl) < 0); in TEST() 55 rewind(file); in TEST() 56 assert_se(fputs("foobar\n", file) >= 0); in TEST() 57 rewind(file); in TEST() 58 assert_se(read_one_char(file, &r, 1000000, &need_nl) < 0); in TEST() [all …]
|
/systemd-251/src/coredump/ |
D | coredumpctl.c | 379 static int print_field(FILE* file, sd_journal *j) { in print_field() argument 383 assert(file); in print_field() 401 fprintf(file, "%s\n", value); in print_field() 469 static int print_list(FILE* file, sd_journal *j, Table *t) { in print_list() argument 485 assert(file); in print_list() 547 static int print_info(FILE *file, sd_journal *j, bool need_space) { in print_info() argument 562 assert(file); in print_info() 596 fputs("\n", file); in print_info() 601 fprintf(file, in print_info() 605 fprintf(file, in print_info() [all …]
|
/systemd-251/docs/ |
D | JOURNAL_FILE_FORMAT.md | 23 This document explains the basic structure of the file format on disk. We are 66 If you are wondering why the journal file format has been created in the first 75 * Offsets are always relative to the beginning of the file. 87 the file and start a new one. No further writes should be attempted to the 88 original file, but it should be left around so that as little data as possible 96 checking for alignment and range of offsets in the file, especially before 108 The file format's data structures are declared in 111 The file format begins with a header structure. After the header structure 115 indexing. When new data is appended to a file the writer first writes all new 116 objects to the end of the file, and then links them up at front after that's [all …]
|
D | HOME_DIRECTORY.md | 20 Inside of the home directory a file `~/.identity` contains the JSON formatted 26 user cannot make modifications to the file on their own (at least not without 39 the user record in the `~/.identity` file. 83 Linux file system inside a LUKS2 volume inside a loopback file (or on removable 101 * Inside of this LUKS2 volume must be a Linux file system, one of `ext4`, 102 `btrfs` and `xfs`. The file system label must be the user name. 104 * This file system should contain a single directory named after the user. This 106 contains a second copy of the user record in the `~/.identity` file, like in 109 The image file should reside in a directory `/home/` on the system, 113 loopback file `/home/waldo.home` is mounted to `/home/waldo` while activated.) [all …]
|
D | BLOCK_DEVICE_LOCKING.md | 10 *TL;DR: Use BSD file locks 12 device nodes to synchronize access for partitioning and file system formatting 15 `systemd-udevd` probes all block devices showing up for file system superblock 23 taking a BSD file lock on the block device node. Specifically, whenever 35 These two concepts allow tools such as disk partitioners or file system 53 writable file descriptors referring to the block device. In almost all cases, 57 i.e. while keeping the file descriptor open for further, longer time, then 67 Note that the file locks follow the usual access semantics of BSD locks: since 73 And please keep in mind: BSD file locks (`flock()`) and POSIX file locks 79 format a RAID file system), the devices should be locked in the order of the [all …]
|
D | TEMPORARY_DIRECTORIES.md | 13 proper, persistent file system, and thus backed by physical storage. This 25 [file-hierarchy(7)](https://www.freedesktop.org/software/systemd/man/file-hierarchy.html) 31 local software. This means guessable file or directory names below either 33 or worse: if some software creates a file or directory `/tmp/foo` then any 34 other software that wants to create the same file or directory `/tmp/foo` 35 either will fail (as the file already exists) or might be tricked into using 63 file system namespacing and bind mounts. This means from the service's point of 70 not available in environments where file system namespaces are prohibited, for 98 1. Make sure to always keep a file descriptor to the temporary files you 100 matter whether the files have been unlinked from the file system: as long as [all …]
|
/systemd-251/src/journal-remote/ |
D | journal-remote-write.c | 12 log_error_errno(r, "Failed to rotate %s: %m", (*f)->file->path); in do_rotate() 44 log_debug("Closing journal file %s.", w->journal->file->path); in writer_free() 72 if (journal_file_rotate_suggested(w->journal->file, 0, LOG_DEBUG)) { in writer_write() 74 w->journal->file->path); in writer_write() 80 r = journal_file_append_entry(w->journal->file, ts, boot_id, in writer_write() 90 log_debug_errno(r, "%s: Write failed, rotating: %m", w->journal->file->path); in writer_write() 95 log_debug("%s: Successfully rotated journal", w->journal->file->path); in writer_write() 98 r = journal_file_append_entry(w->journal->file, ts, boot_id, in writer_write()
|
/systemd-251/src/boot/efi/ |
D | splash.c | 47 struct bmp_file *file; in bmp_parse_header() local 61 file = (struct bmp_file *)bmp; in bmp_parse_header() 62 if (file->signature[0] != 'B' || file->signature[1] != 'M') in bmp_parse_header() 64 if (file->size != size) in bmp_parse_header() 66 if (file->size < file->offset) in bmp_parse_header() 96 if (file->size - file->offset < dib->y * row_size) in bmp_parse_header() 103 if (file->offset < sizeof(struct bmp_file) + dib->size) in bmp_parse_header() 106 if (file->offset > sizeof(struct bmp_file) + dib->size) { in bmp_parse_header() 126 map_size = file->offset - (sizeof(struct bmp_file) + dib->size); in bmp_parse_header() 133 *pixmap = bmp + file->offset; in bmp_parse_header()
|
/systemd-251/test/units/ |
D | testsuite-22.07.sh | 11 touch /tmp/test-prefix/file 15 r /tmp/test-prefix/file 18 test ! -f /tmp/test-prefix/file 22 touch /tmp/test-prefix/file 25 r /tmp/test-prefix/file 29 test ! -f /tmp/test-prefix/file
|
/systemd-251/network/ |
D | 80-6rd-tunnel.network | 3 # This config file is installed as part of systemd. 7 # 1. add a drop-in file that extends this file by creating the 9 # new .conf file there. 10 # 2. copy this file into /etc/systemd/network or one of the other paths checked 12 # This file should not be edited in place, because it'll be overwritten on upgrades. 14 # This network file matches 6rd-* SIT devices which is automatically created by
|
D | 80-container-host0.network | 3 # This config file is installed as part of systemd. 7 # 1. add a drop-in file that extends this file by creating the 9 # new .conf file there. 10 # 2. copy this file into /etc/systemd/network or one of the other paths checked 12 # This file should not be edited in place, because it'll be overwritten on upgrades. 14 # This network file matches the container-side of the virtual Ethernet link
|
D | 80-container-vb.network | 3 # This config file is installed as part of systemd. 7 # 1. add a drop-in file that extends this file by creating the 9 # new .conf file there. 10 # 2. copy this file into /etc/systemd/network or one of the other paths checked 12 # This file should not be edited in place, because it'll be overwritten on upgrades. 14 # This network file matches the host-side of the virtual Ethernet link
|
D | 80-container-ve.network | 3 # This config file is installed as part of systemd. 7 # 1. add a drop-in file that extends this file by creating the 9 # new .conf file there. 10 # 2. copy this file into /etc/systemd/network or one of the other paths checked 12 # This file should not be edited in place, because it'll be overwritten on upgrades. 14 # This network file matches the host-side of the virtual Ethernet link
|
D | 80-container-vz.network | 3 # This config file is installed as part of systemd. 7 # 1. add a drop-in file that extends this file by creating the 9 # new .conf file there. 10 # 2. copy this file into /etc/systemd/network or one of the other paths checked 12 # This file should not be edited in place, because it'll be overwritten on upgrades. 14 # This network file matches the bridge interface created by systemd-nspawn's
|
D | 80-vm-vt.network | 3 # This config file is installed as part of systemd. 7 # 1. add a drop-in file that extends this file by creating the 9 # new .conf file there. 10 # 2. copy this file into /etc/systemd/network or one of the other paths checked 12 # This file should not be edited in place, because it'll be overwritten on upgrades. 14 # This network file matches vt-* TUN/TAP devices and applies a similar
|
D | 80-wifi-adhoc.network | 3 # This config file is installed as part of systemd. 7 # 1. add a drop-in file that extends this file by creating the 9 # new .conf file there. 10 # 2. copy this file into /etc/systemd/network or one of the other paths checked 12 # This file should not be edited in place, because it'll be overwritten on upgrades.
|
D | 99-default.link | 3 # This config file is installed as part of systemd. 7 # 1. add a drop-in file that extends this file by creating the 9 # new .conf file there. 10 # 2. copy this file into /etc/systemd/network or one of the other paths checked 12 # This file should not be edited in place, because it'll be overwritten on upgrades.
|
/systemd-251/test/ |
D | test-functions | 263 ASAN_RT_PATH="$(readlink -f "$(${CC:-gcc} --print-file-name "$ASAN_RT_NAME")")" 266 ASAN_RT_PATH="$(readlink -f "$(${CC:-clang} --print-file-name "$ASAN_RT_NAME")")" 775 exec valgrind --leak-check=full --track-fds=yes --log-file=/valgrind.out $ROOTLIBDIR/systemd "\$@" 970 local file 971 while read -r file; do 973 inst_libs "$file" 975 inst_library "$file" 1020 local file 1052 while read -r file; do 1053 inst_simple "$file" [all …]
|
/systemd-251/src/rpm/ |
D | meson.build | 13 # the rpm spec file definition instead. 16 file = tuple[0] variable 18 file, 19 input : file + '.in', 20 output : file,
|