Command line parsing
David A. Braun
braunster at gmail.com
Tue Sep 20 07:34:50 EDT 2005
as Clinton said - it depends on what you mean by "it"
If by "it" you mean the return value of EINVAL when the named partition
by master->name is not found then you are correct. My mistake.
Timofei V. Bondarenko wrote:
> 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
> 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
More information about the linux-mtd