Home
last modified time | relevance | path

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

/block/partitions/
Dcmdline.c69 sector_t disk_size; in cmdline_partition() local
92 disk_size = get_capacity(state->bdev->bd_disk) << 9; in cmdline_partition()
94 cmdline_parts_set(parts, disk_size, 1, add_part, (void *)state); in cmdline_partition()
/block/
Dcmdline-parser.c225 int cmdline_parts_set(struct cmdline_parts *parts, sector_t disk_size, in cmdline_parts_set() argument
240 if (from >= disk_size) in cmdline_parts_set()
243 if (subpart->size > (disk_size - from)) in cmdline_parts_set()
244 subpart->size = disk_size - from; in cmdline_parts_set()