From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from xproxy.gmail.com ([66.249.82.199]) by canuck.infradead.org with esmtp (Exim 4.52 #1 (Red Hat Linux)) id 1EHgOk-0003zu-9o for linux-mtd@lists.infradead.org; Tue, 20 Sep 2005 07:34:59 -0400 Received: by xproxy.gmail.com with SMTP id i30so1338726wxd for ; Tue, 20 Sep 2005 04:34:53 -0700 (PDT) Message-ID: <432FF3DA.1030003@gmail.com> Date: Tue, 20 Sep 2005 07:34:50 -0400 From: "David A. Braun" MIME-Version: 1.0 To: "Timofei V. Bondarenko" References: <432C2E6C.6050400@gmail.com> <20050919093300.GB21380@wohnheim.fh-wedel.de> <20050919153217.GA26968@wohnheim.fh-wedel.de> <432F0884.2020409@gmail.com> <432FC69D.30602@ipi.ac.ru> In-Reply-To: <432FC69D.30602@ipi.ac.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: linux-mtd@lists.infradead.org Subject: Re: Command line parsing List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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. dave 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 >> device. >> > > Is not it intentional? > > There is a comment: > mtd-id := unique name used in mapping driver/device (mtd->name) > > 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. >