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

2018-05-06 Thread Caizhiyong
> /* > * 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); > +

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

2018-05-06 Thread Caizhiyong
> /* > * 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); > +

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

2018-05-06 Thread Randy Dunlap
Hi, On 05/05/2018 10:23 PM, Wang YanQing wrote: > I meet strange filesystem corruption issue recently, the reason > is there are overlaps partitions in cmdline partition argument. > > This patch add verifier for cmdline partition, then if there are > overlaps partitions, cmdline_partition will

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

2018-05-06 Thread Randy Dunlap
Hi, On 05/05/2018 10:23 PM, Wang YanQing wrote: > I meet strange filesystem corruption issue recently, the reason > is there are overlaps partitions in cmdline partition argument. > > This patch add verifier for cmdline partition, then if there are > overlaps partitions, cmdline_partition will