Lines Matching refs:devno
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()
3984 … return log_error_errno(r, "Failed to get device name of %u:%u: %m", major(devno), minor(devno)); in context_open_copy_block_paths()
4477 dev_t devno, fd_devno = MODE_INVALID; in acquire_root_devno() local
4505 fd_devno = devno = st.st_rdev; in acquire_root_devno()
4508 devno = st.st_dev; in acquire_root_devno()
4509 if (major(devno) == 0) { in acquire_root_devno()
4510 r = btrfs_get_block_device_fd(fd, &devno); in acquire_root_devno()
4520 r = block_get_originating(devno, &devno); in acquire_root_devno()
4527 r = block_get_whole_disk(devno, &devno); in acquire_root_devno()
4531 r = device_path_make_canonical(S_IFBLK, devno, ret); in acquire_root_devno()
4537 *ret_fd = fd_devno != MODE_INVALID && fd_devno == devno ? TAKE_FD(fd) : -1; in acquire_root_devno()
4946 …loop_device ? loop_device->devno : /* if --image= is specified, only allow partitions on t… in run()