[PATCH resend] ubi: attach: do not return -EINVAL if the mtd->numeraseregions is 1
Artem Bityutskiy
dedekind1 at gmail.com
Fri Feb 14 06:22:54 EST 2014
On Fri, 2014-02-14 at 17:11 +0800, Huang Shijie wrote:
> But if we do not have any _slave_ partitions, we will only have one
> master partition.
> and the numeraseregions is kept. this is the case i meet.
Why you prefer to change UBI instead of changing MTD so that master
partitions with no slave partitions would have numeraseregions=0.
And frankly, I did not clearly understand your answer.
And what erase regions have to do with master/slave?
Correct me if I am wrong below.
The erase region concept belongs to the flash chip. Some chips have
special regions, for some special purposes, and these, typically small,
regions have a bit different geometry.
Master/slave is a purely software concept. I never clearly understood
the model, but this is something related to partitions. We have a master
MTD device representing the entire chip, and slave MTD devices
representing partitions.
In your explanation you mix these 2 unrelated concepts, and I do not
understand why.
Yes, I could go and dig the code, but I prefer the patch submitter to
educate me instead, and demonstrate the depth of his understanding of
the subject :=) Sorry, I am lazy :-)
--
Best Regards,
Artem Bityutskiy
More information about the linux-mtd
mailing list