Home
last modified time | relevance | path

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

/systemd-251/src/home/
Dhomework-luks.c2196 uint64_t block_device_size; in home_create_luks() local
2219 if (ioctl(setup->image_fd, BLKGETSIZE64, &block_device_size) < 0) in home_create_luks()
2226 … host_size = CLAMP(DISK_SIZE_ROUND_DOWN(block_device_size * h->disk_size_relative / UINT32_MAX), in home_create_luks()
2229 host_size = block_device_size; /* Otherwise, take the full device */ in home_create_luks()
2231 } else if (h->disk_size > block_device_size) in home_create_luks()
2249 … if (ioctl(setup->image_fd, BLKDISCARD, (uint64_t[]) { 0, block_device_size }) < 0) in home_create_luks()