Command line parsing

Timofei V. Bondarenko timm at ipi.ac.ru
Tue Sep 20 04:21:49 EDT 2005


David A. Braun wrote:
> If the name in master->name doesn't match any of the partitions 
> mentioned on the kernel command line then *pparts->offset is not 
> initialized. The result is that all the partitions start at 0. Also the 
> length of the "SIZE_REMAINING" partition is never initialized. Also the 
> return value is -EINVAL instead of the number of partitions. This 
> results in none of the partitions being pass to the driver. The only 
> partition that appears in /proc/partitions is one for the whole device.
> 

Is not it intentional?

There is a comment:
<Q> mtd-id := unique name used in mapping driver/device (mtd->name) </Q>

These names are identifing the separate devices rather than partitions.
And IMO it's only way to deal multiple flash devices with different partitioning.

--
Regards.
	Tim.




More information about the linux-mtd mailing list