/systemd-251/src/partition/ |
D | growfs.c | 33 static int resize_crypt_luks_device(dev_t devno, const char *fstype, dev_t main_devno) { in resize_crypt_luks_device() argument 57 r = device_path_make_major_minor(S_IFBLK, devno, &devpath); in resize_crypt_luks_device() 90 dev_t devno; in maybe_resize_underlying_device() local 97 r = get_block_device_harder(mountpath, &devno); in maybe_resize_underlying_device() 101 if (devno == 0) in maybe_resize_underlying_device() 105 major(devno), minor(devno), in maybe_resize_underlying_device() 107 devno == main_devno ? "same" : "different"); in maybe_resize_underlying_device() 108 if (devno == main_devno) in maybe_resize_underlying_device() 111 r = device_path_make_major_minor(S_IFBLK, devno, &devpath); in maybe_resize_underlying_device() 123 return resize_crypt_luks_device(devno, fstype, main_devno); in maybe_resize_underlying_device() [all …]
|
D | repart.c | 3813 dev_t devno, found = 0; in resolve_copy_blocks_auto() local 3851 r = find_backing_devno(try1, root, &devno); in resolve_copy_blocks_auto() 3853 r = find_backing_devno(try2, root, &devno); in resolve_copy_blocks_auto() 3858 xsprintf_sys_block_path(p, "/slaves", devno); in resolve_copy_blocks_auto() 3914 … r = resolve_copy_blocks_auto_candidate(devno, type_uuid, restrict_devno, &found_uuid); in resolve_copy_blocks_auto() 3918 found = devno; in resolve_copy_blocks_auto() 3972 dev_t devno; in context_open_copy_block_paths() local 3974 … r = resolve_copy_blocks_auto(p->type_uuid, root, restrict_devno, &devno, &uuid); in context_open_copy_block_paths() 3978 r = sd_device_new_from_devnum(&dev, 'b', devno); in context_open_copy_block_paths() 3980 …ror_errno(r, "Failed to create sd-device object for device %u:%u: %m", major(devno), minor(devno)); in context_open_copy_block_paths() [all …]
|
/systemd-251/src/shared/ |
D | quota-util.c | 29 dev_t devno; in quotactl_path() local 35 r = get_block_device(path, &devno); in quotactl_path() 38 if (devno == 0) /* Doesn't have a block device */ in quotactl_path() 41 return quotactl_devnum(cmd, devno, id, addr); in quotactl_path()
|
D | blockdev-util.h | 12 #define xsprintf_sys_block_path(buf, suffix, devno) \ argument 13 xsprintf(buf, "/sys/dev/block/%u:%u%s", major(devno), minor(devno), strempty(suffix))
|
D | loop-util.c | 457 .devno = st.st_rdev, in loop_device_make_internal() 614 .devno = st.st_rdev, in loop_device_make_internal() 622 major(d->devno), minor(d->devno), in loop_device_make_internal() 814 .devno = st.st_dev, in loop_device_open() 829 dev_t devno; in resize_partition() local 880 r = parse_devnum(buffer, &devno); in resize_partition() 884 r = device_path_make_major_minor(S_IFBLK, devno, &whole); in resize_partition()
|
D | sleep-config.c | 310 sys_resume == location->devno && in location_is_resume_device() 421 .devno = swap_device, in find_hibernate_location() 455 …bernate_location->swap->device, major(hibernate_location->devno), minor(hibernate_location->devno), in find_hibernate_location() 459 …bernate_location->swap->device, major(hibernate_location->devno), minor(hibernate_location->devno), in find_hibernate_location()
|
D | loop-util.h | 14 dev_t devno; member
|
D | sleep-config.h | 43 dev_t devno; member
|
/systemd-251/src/home/ |
D | homework-quota.c | 41 dev_t devno; in home_update_quota_classic() local 51 r = get_block_device(path, &devno); in home_update_quota_classic() 54 if (devno == 0) in home_update_quota_classic() 57 r = quotactl_devnum(QCMD_FIXED(Q_GETQUOTA, USRQUOTA), devno, h->uid, &req); in home_update_quota_classic() 77 r = quotactl_devnum(QCMD_FIXED(Q_SETQUOTA, USRQUOTA), devno, h->uid, &req); in home_update_quota_classic()
|
/systemd-251/src/udev/ |
D | udevadm-lock.c | 210 dev_t devno, in lock_device() argument 225 if (!S_ISBLK(st.st_mode) || st.st_rdev != devno) in lock_device() 226 …Path '%s' no longer refers to specified block device %u:%u: %m", path, major(devno), minor(devno)); in lock_device() 314 log_debug("Successfully locked %s (%u:%u)…", path, major(devno), minor(devno)); in lock_device()
|
/systemd-251/src/test/ |
D | test-devnum-util.c | 65 dev_t devno; in test_device_path_make_canonical_one() local 89 assert_se(device_path_parse_major_minor(raw, &mode, &devno) >= 0); in test_device_path_make_canonical_one() 91 assert_se(st.st_rdev == devno); in test_device_path_make_canonical_one()
|
/systemd-251/src/gpt-auto-generator/ |
D | gpt-auto-generator.c | 777 dev_t devno; in add_mounts() local 784 r = get_block_device_harder("/", &devno); in add_mounts() 790 r = get_block_device_harder("/usr", &devno); in add_mounts() 804 r = device_path_parse_major_minor(p, &m, &devno); in add_mounts() 811 return enumerate_partitions(devno); in add_mounts()
|
/systemd-251/src/sleep/ |
D | sleep.c | 48 … xsprintf(resume_str, "%u:%u", major(hibernate_location->devno), minor(hibernate_location->devno)); in write_hibernate_location_info()
|