From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.free-electrons.com ([88.190.12.23]) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Qz6jv-0001d3-Q9 for linux-mtd@lists.infradead.org; Thu, 01 Sep 2011 12:51:28 +0000 Message-ID: <4E5F80B0.9060908@free-electrons.com> Date: Thu, 01 Sep 2011 14:55:12 +0200 From: David Wagner MIME-Version: 1.0 To: Arnd Bergmann Subject: Re: [PATCHv3] UBI: new module ubiblk: block layer on top of UBI References: <1308922482-14967-1-git-send-email-david.wagner@free-electrons.com> <201108241823.20904.arnd@arndb.de> <1314256010.18988.18.camel@sauron> <201108251712.40894.arnd@arndb.de> In-Reply-To: <201108251712.40894.arnd@arndb.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: linux-embedded , dedekind1@gmail.com, lkml , linux-mtd , Tim Bird , David Woodhouse List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 08/25/2011 05:12 PM, Arnd Bergmann wrote: > The cost of a block device node in the kernel is rather low. Nowadays, > sysfs does not even permanently use inodes for entries, it has a much > more compact internal representation IIRC. > > The main advantage of this approach is not having to set up the > block device at all, it would just be there, which e.g. makes it > possible to put a root file system on it or do something else without > requiring a user space tool to issue an ioctl. Before patch v3, every existing and new UBI volumes were "proxyfied" by ubiblk and it was, indeed, one of our goal to be able to have a rootfs on it. Patch v3 hinders that goal but it could still be achievable by adding a module parameter that would explicitly create a ubiblk device for a UBI volume at boot time. I for one am fine with both solutions (keep the ioctl + add a kernel parameter and throwing the ioctl away and go back "automatically create a ubiblk for each UBI volume"). However, I agree that it doesn't make sense to create a ubiblk device on top of UBI volumes containing, for instance, a ubifs. Best Regards, David. -- David Wagner, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com