UBI: add UBI control device
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 16 Dec 2007 14:59:31 +0000 (16:59 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Mon, 25 May 2009 14:08:25 +0000 (17:08 +0300)
commitf6f5e263b1d7edfbb2faed57f4c54dcfd19e9423
tree973d08a5d0a7b57d943467b5d8084a9fada95faa
parent31deb5820efef90f3f2963be9f93121d6ca415d2
UBI: add UBI control device

This patch is a preparation to make UBI devices dynamic. It
adds an UBI control device which has dynamically allocated
major number and registers itself as "ubi_ctrl". It does not
do anything so far. The idea is that this device will allow
to attach/detach MTD devices from userspace.

This is symilar to what the Linux device mapper has.

The next things to do are:
* Fix UBI, because it now assumes UBI devices cannot go away
* Implement control device ioctls which will attach/detach MTD
  devices

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/build.c
drivers/mtd/ubi/cdev.c
drivers/mtd/ubi/ubi.h