RE: [PATCH v3] block: add verifier for cmdline partition

From: Caizhiyong
Date: Sun May 06 2018 - 22:31:05 EST


> /*
> * Purpose: allocate cmdline partitions.
> * Returns:
> @@ -93,6 +158,7 @@ int cmdline_partition(struct parsed_partitions *state)
> disk_size = get_capacity(state->bdev->bd_disk) << 9;
>
> cmdline_parts_set(parts, disk_size, 1, add_part, (void *)state);
> + cmdline_parts_verifier(1, (void *)state);

cmdline_parts_verifier(1, state);

>
> strlcat(state->pp_buf, "\n", PAGE_SIZE);
>
> --
> 1.8.5.6.2.g3d8a54e.dirty