Home
last modified time | relevance | path

Searched refs:st_dev (Results 1 – 25 of 27) sorted by relevance

12

/systemd-251/src/test/
Dtest-install-file.c34 assert_se(stat1.st_dev == stat2.st_dev); in TEST()
41 assert_se(stat1.st_dev == stat2.st_dev); in TEST()
Dtest-copy.c176 assert_se(a.st_dev == b.st_dev); in TEST()
/systemd-251/src/shared/
Dfind-esp.c249 if (major(st.st_dev) == 0) in verify_fsroot_dir()
259 *ret_dev = st.st_dev; in verify_fsroot_dir()
287 if (st.st_dev == st2.st_dev) in verify_fsroot_dir()
293 *ret_dev = st.st_dev; in verify_fsroot_dir()
435 *ret_devid = st.st_dev; in find_esp_and_warn()
685 *ret_devid = st.st_dev; in find_xbootldr_and_warn()
Dcopy.c637 … xsprintf(dev_ino, "%u:%u:%" PRIu64, major(st->st_dev), minor(st->st_dev), (uint64_t) st->st_ino); in try_hardlink()
670 … xsprintf(dev_ino, "%u:%u:%" PRIu64, major(st->st_dev), minor(st->st_dev), (uint64_t) st->st_ino); in memorize_hardlink()
986 if (buf.st_dev != original_device) in fd_copy_directory()
1061 …r = fd_copy_directory(fdf, from, &st, fdt, to, st.st_dev, COPY_DEPTH_MAX, override_uid, override_g… in copy_tree_at_full()
1127 st.st_dev, in copy_directory_fd_full()
1170 st.st_dev, in copy_directory_full()
Dblockdev-util.c73 if (major(st.st_dev) != 0) { in get_block_device_fd()
74 *ret = st.st_dev; in get_block_device_fd()
Drm-rf.c145 if (root_dev && st.st_dev != root_dev->st_dev) in rm_rf_inner_child()
Dbootspec.c334 siphash24_compress(&q->st_dev, sizeof(q->st_dev), state); in inode_hash_func()
341 r = CMP(a->st_dev, b->st_dev); in inode_compare_func()
Dloop-util.c814 .devno = st.st_dev, in loop_device_open()
Ddiscover-image.c1063 …printf(&p, "/run/systemd/nspawn/locks/inode-%lu:%lu", (unsigned long) st.st_dev, (unsigned long) s… in image_path_lock()
Ddissect-image.c1204 xsprintf_sys_block_path(s, "/loop/", st.st_dev); in is_loop_device()
1210 xsprintf_sys_block_path(s, "/../loop/", st.st_dev); in is_loop_device()
/systemd-251/src/basic/
Dstat-util.c349 a->st_dev == b->st_dev && in stat_inode_same()
414 .stx_dev_major = major(st.st_dev), in statx_fallback()
415 .stx_dev_minor = minor(st.st_dev), in statx_fallback()
Dmountpoint-util.c305 return check_st_dev && (a.st_dev != b.st_dev); in fd_is_mount_point()
Dlog.c254 return st.st_dev == dev && st.st_ino == ino; in stderr_is_journal()
/systemd-251/src/udev/
Dudevadm-info.c273 prefix, major(statbuf.st_dev), in stat_device()
274 prefix, minor(statbuf.st_dev)); in stat_device()
276 printf("%u:%u\n", major(statbuf.st_dev), minor(statbuf.st_dev)); in stat_device()
Dudevadm-lock.c170 else if (major(st.st_dev) != 0) in find_devno()
171 devt = st.st_dev; in find_devno()
/systemd-251/src/journal/
Djournald-stream.c166 …, "%s/streams/%lu:%lu", s->server->runtime_directory, (unsigned long) st.st_dev, (unsigned long) s… in stdout_stream_save()
864 unsigned long st_dev, st_ino; in server_restore_streams() local
868 if (sscanf(de->d_name, "%lu:%lu", &st_dev, &st_ino) != 2) in server_restore_streams()
877 if (S_ISSOCK(st.st_mode) && st.st_dev == st_dev && st.st_ino == st_ino) { in server_restore_streams()
/systemd-251/src/fsck/
Dfsck.c304 if (major(st.st_dev) == 0) { in run()
318 r = sd_device_new_from_devnum(&dev, 'b', st.st_dev); in run()
/systemd-251/src/sysext/
Dsysext.c94 if (st.st_dev != dev) { in is_our_mount_point()
388 … r = write_string_filef(f, WRITE_STRING_FILE_CREATE, "%u:%u", major(st.st_dev), minor(st.st_dev)); in merge_hierarchy()
/systemd-251/src/home/
Dhomed-manager.c510 if (major(st.st_dev) == 0) { in search_quota()
515 … if (st.st_dev == exclude_st.st_dev) { /* If an exclude path is specified, then ignore quota in search_quota()
521 … if (st.st_dev == previous_devno) { /* Does this directory have the same devno as the previous in search_quota()
528 previous_devno = st.st_dev; in search_quota()
530 r = quotactl_devnum(QCMD_FIXED(Q_GETQUOTA, USRQUOTA), st.st_dev, uid, &req); in search_quota()
/systemd-251/src/core/
Dautomount.c635 ioctl_fd = open_ioctl_fd(dev_autofs_fd, a->where, st.st_dev); in automount_enter_waiting()
656 a->dev_id = st.st_dev; in automount_enter_waiting()
802 if (!S_ISDIR(st.st_mode) || st.st_dev != a->dev_id) { in automount_enter_running()
Dcgroup.c840 dev = st.st_dev; in lookup_block_device()
/systemd-251/docs/
DJOURNAL_NATIVE_PROTOCOL.md170 the STDERR file descriptor. If the `.st_dev` and `.st_ino` fields of the
/systemd-251/src/partition/
Drepart.c4005 if (major(st.st_dev) != 0) in context_open_copy_block_paths()
4006 r = sd_device_new_from_devnum(&dev, 'b', st.st_dev); in context_open_copy_block_paths()
4508 devno = st.st_dev; in acquire_root_devno()
/systemd-251/src/tmpfiles/
Dtmpfiles.c2486 sx.stx_dev_major != major(ps.st_dev) || in clean_item_instance()
2487 sx.stx_dev_minor != minor(ps.st_dev) || in clean_item_instance()
/systemd-251/src/libsystemd/sd-event/
Dsd-event.c2047 r = event_make_inode_data(e, inotify_data, st.st_dev, st.st_ino, &inode_data); in event_add_inotify_fd_internal()

12