Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 617) sorted by relevance

12345678910>>...25

/systemd-251/src/journal/
Dmanaged-journal-file.c165 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 …]
Dtest-journal.c48 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 …]
Dtest-journal-interleaving.c23 _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/
Dupdate-dbus-docs.py45 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/
Dlog.c377 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 …]
Dlog.h91 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/
Dtest-terminal-util.c41 _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/
Dcoredumpctl.c379 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/
DJOURNAL_FILE_FORMAT.md23 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 …]
DHOME_DIRECTORY.md20 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 …]
DBLOCK_DEVICE_LOCKING.md10 *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 …]
DTEMPORARY_DIRECTORIES.md13 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/
Djournal-remote-write.c12 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/
Dsplash.c47 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/
Dtestsuite-22.07.sh11 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/
D80-6rd-tunnel.network3 # 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
D80-container-host0.network3 # 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
D80-container-vb.network3 # 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
D80-container-ve.network3 # 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
D80-container-vz.network3 # 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
D80-vm-vt.network3 # 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
D80-wifi-adhoc.network3 # 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.
D99-default.link3 # 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/
Dtest-functions263 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/
Dmeson.build13 # the rpm spec file definition instead.
16 file = tuple[0] variable
18 file,
19 input : file + '.in',
20 output : file,

12345678910>>...25