Home
last modified time | relevance | path

Searched refs:whole_fd (Results 1 – 2 of 2) sorted by relevance

/systemd-251/src/shared/
Dloop-util.c827 _cleanup_close_ int whole_fd = -1; in resize_partition() local
888 whole_fd = open(whole, O_RDWR|O_CLOEXEC|O_NONBLOCK|O_NOCTTY); in resize_partition()
889 if (whole_fd < 0) in resize_partition()
904 return RET_NERRNO(ioctl(whole_fd, BLKPG, &ba)); in resize_partition()
/systemd-251/src/partition/
Drepart.c2733 int whole_fd = -1, r; in context_copy_blocks() local
2759 if (whole_fd < 0) in context_copy_blocks()
2760 assert_se((whole_fd = fdisk_get_devfd(context->fdisk_context)) >= 0); in context_copy_blocks()
2763 r = loop_device_make(whole_fd, O_RDWR, p->offset, p->new_size, 0, &d); in context_copy_blocks()
2780 if (lseek(whole_fd, p->offset, SEEK_SET) == (off_t) -1) in context_copy_blocks()
2783 target_fd = whole_fd; in context_copy_blocks()