Home
last modified time | relevance | path

Searched refs:magic (Results 1 – 25 of 28) sorted by relevance

12

/systemd-251/src/basic/
Dfilesystems-gperf.gperf3 #include <linux/magic.h>
11 statfs_f_type_t magic[FILESYSTEM_MAGIC_MAX];
37 # cpuset's magic got reassigned to cgroupfs
41 # note that the cgroupfs magic got reassigned from cpuset
51 # devtmpfs is just a special instance of tmpfs, hence it reports its magic
58 # ext2 + ext3 + ext4 use the same magic
64 # fuseblk is so closely related to fuse that it shares the same magic
68 # gfs is an old version of gfs2 and reuses the magic
78 # msdos is an older legacy version of vfat, shares the magic
83 # nfs is the old version of nfs4, and they share the same magic
[all …]
Dfilesystems.c6 const char *fs_type_to_string(statfs_f_type_t magic) { in fs_type_to_string() argument
8 switch (magic) { in fs_type_to_string()
26 *ret = fs_magic->magic; in fs_type_from_string()
35 const statfs_f_type_t *magic; in fs_in_group() local
37 r = fs_type_from_string(fs, &magic); in fs_in_group()
40 if (magic[i] == 0) in fs_in_group()
43 if (is_fs_type(s, magic[i])) in fs_in_group()
Dlocale-util.c65 uint32_t magic; in add_locales_from_archive() member
124 if (h->magic != 0xde020109 || in add_locales_from_archive()
Dfilesystems.h37 const char *fs_type_to_string(statfs_f_type_t magic);
Dmeson.build384 filesystem_includes = ['linux/magic.h',
/systemd-251/src/analyze/
Danalyze-filesystems.c78 const statfs_f_type_t *magic; in dump_filesystem_set() local
85 r = fs_type_from_string(filesystem, &magic); in dump_filesystem_set()
90 for (size_t i = 0; magic[i] != 0; i++) { in dump_filesystem_set()
97 printf("0x%llx", (unsigned long long) magic[i]); in dump_filesystem_set()
99 primary = fs_type_to_string(magic[i]); in dump_filesystem_set()
103 if (magic[i+1] == 0) in dump_filesystem_set()
160 const statfs_f_type_t *magic; in verb_filesystems() local
163 assert_se(fs_type_from_string(*filesystem, &magic) >= 0); in verb_filesystems()
165 for (size_t i = 0; magic[i] != 0; i++) { in verb_filesystems()
168 primary = fs_type_to_string(magic[i]); in verb_filesystems()
/systemd-251/src/shared/
Dresize-fs.c91 uint64_t minimal_size_by_fs_magic(statfs_f_type_t magic) { in minimal_size_by_fs_magic() argument
93 switch (magic) { in minimal_size_by_fs_magic()
124 bool fs_can_online_shrink_and_grow(statfs_f_type_t magic) { in fs_can_online_shrink_and_grow() argument
125 return magic == (statfs_f_type_t) BTRFS_SUPER_MAGIC; in fs_can_online_shrink_and_grow()
Dresize-fs.h14 uint64_t minimal_size_by_fs_magic(statfs_f_type_t magic);
17 bool fs_can_online_shrink_and_grow(statfs_f_type_t magic);
Dinitreq.h66 int magic; /* Magic number */ member
/systemd-251/src/libsystemd-network/
Dtest-dhcp-option.c87 uint8_t *magic; in test_message_init() local
98 magic = (uint8_t*)&message->magic; in test_message_init()
100 assert_se(magic[0] == 99); in test_message_init()
101 assert_se(magic[1] == 130); in test_message_init()
102 assert_se(magic[2] == 83); in test_message_init()
103 assert_se(magic[3] == 99); in test_message_init()
Ddhcp-protocol.h30 be32_t magic; member
Ddhcp-packet.c52 message->magic = htobe32(DHCP_MAGIC_COOKIE); in dhcp_message_init()
Ddhcp-network.c71 …BPF_STMT(BPF_LD + BPF_W + BPF_ABS, offsetof(DHCPPacket, dhcp.magic)), /* A <- DHCP magic cookie */ in _bind_raw_socket()
/systemd-251/src/core/
Dbpf-lsm.c209 const statfs_f_type_t *magic; in lsm_bpf_unit_restrict_filesystems() local
242 r = fs_type_from_string(fs, &magic); in lsm_bpf_unit_restrict_filesystems()
251 if (magic[i] == 0) in lsm_bpf_unit_restrict_filesystems()
254 … if (sym_bpf_map_update_elem(inner_map_fd, &magic[i], &dummy_value, BPF_ANY) != 0) { in lsm_bpf_unit_restrict_filesystems()
/systemd-251/src/udev/
Dudev-ctrl.c28 unsigned magic; member
203 if (msg_wire.magic != UDEV_CTRL_MAGIC) { in udev_ctrl_connection_event_handler()
204 log_error("Message magic 0x%08x doesn't match, ignoring message", msg_wire.magic); in udev_ctrl_connection_event_handler()
297 .magic = UDEV_CTRL_MAGIC, in udev_ctrl_send()
/systemd-251/src/libsystemd/sd-device/
Ddevice-monitor.c60 unsigned magic; member
483 if (buf.nlh.magic != htobe32(UDEV_MONITOR_MAGIC)) in device_monitor_receive_device()
486 buf.nlh.magic, htobe32(UDEV_MONITOR_MAGIC)); in device_monitor_receive_device()
553 .magic = htobe32(UDEV_MONITOR_MAGIC), in device_monitor_send_device()
667 bpf_stmt(ins, &i, BPF_LD|BPF_W|BPF_ABS, offsetof(monitor_netlink_header, magic)); in sd_device_monitor_filter_update()
/systemd-251/src/import/
Dqcow2-util.c18 be32_t magic; member
46 #define HEADER_MAGIC(header) be32toh((header)->magic)
/systemd-251/src/shared/linux/
Dauto_dev-ioctl.h77 __u32 magic; member
Dethtool.h351 __u32 magic; member
/systemd-251/src/systemctl/
Dsystemctl-sysv-compat.c44 .magic = INIT_MAGIC, in talk_initctl()
/systemd-251/src/initctl/
Dinitctl.c127 if (req->magic != INIT_MAGIC) { in request_process()
/systemd-251/src/boot/efi/
Dstub.c18 _used_ _section_(".sdmagic") static const char magic[] = "#### LoaderInfo: systemd-stub " GIT_VERSI…
Dboot.c35 _used_ _section_(".sdmagic") static const char magic[] =
1944 if (EFI_ERROR(err) || size != sizeof(magic)) in is_sd_boot()
1951 return CompareMem(content, magic, sizeof(magic)) == 0; in is_sd_boot()
/systemd-251/src/home/
Dhomed-home.c2514 statfs_f_type_t magic; in home_augment_status() local
2540 &magic, in home_augment_status()
2545 fstype = fs_type_to_string(magic); in home_augment_status()
/systemd-251/docs/
DCGROUP_DELEGATION.md82 support for all kinds of per-cgroup BPF magic, supports secure delegation of
446 user created a container by that name, because `tasks` after all is a magic

12