All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/1] ubi: Introduce block devices for UBI volumes
@ 2013-05-18 14:31 Ezequiel Garcia
  2013-05-18 14:31 ` [PATCH v3 1/1] " Ezequiel Garcia
  2013-05-18 14:31 ` [PATCH] ubi-utils: Add ubiblkvol tool Ezequiel Garcia
  0 siblings, 2 replies; 6+ messages in thread
From: Ezequiel Garcia @ 2013-05-18 14:31 UTC (permalink / raw)
  To: linux-mtd
  Cc: Thomas Petazzoni, Mike Frysinger, Artem Bityutskiy,
	richard.weinberger, Michael Opdenacker, Tim Bird, Ezequiel Garcia

This patch adds block device access on top of UBI volumes, which allows
for a ligthweigth solution to mount block-oriented filesystems on top of
flash devices.

If you are wondering why we want this, you can read this discussion:

  http://lkml.indiana.edu/hypermail/linux/kernel/1211.2/02556.html

In particular, it's important to note this already has users:

  http://permalink.gmane.org/gmane.linux.drivers.mtd/46221

* Changes from v2 *

On this 3rd version of the patch I've re-worked the patch considerably,
mostly integrating it with UBI, instead of making it a separate module.

Despite this integration, the ubiblock code is still completely independent
of the UBI core and it can be completely compiled-out through configuration.
In turn, making ubiblock part of UBI allows to add ioctl access to attach/detach
block devices to/from UBI volumes in a very simple way.

A new tool 'ubiblkvol' is added to ubi-utils to access these two new ioctls.

To address the 'write or not to write' discussion, the write support is enabled
with a kernel option and there's a big fat 'DANGEROUS' label on it to prevent
misusage.

I'm eager to hear some comments, and perhaps some flames: it's getting very cold
this autumn south of south-america :)

Ezequiel Garcia (1):
  ubi: Introduce block devices for UBI volumes

 drivers/mtd/ubi/Kconfig     |  24 ++
 drivers/mtd/ubi/Makefile    |   1 +
 drivers/mtd/ubi/block.c     | 894 ++++++++++++++++++++++++++++++++++++++++++++
 drivers/mtd/ubi/build.c     |   5 +
 drivers/mtd/ubi/cdev.c      |  20 +
 drivers/mtd/ubi/ubi.h       |  14 +
 include/uapi/mtd/ubi-user.h |  11 +
 7 files changed, 969 insertions(+)
 create mode 100644 drivers/mtd/ubi/block.c

-- 
1.8.1.5

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-09-27 23:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-18 14:31 [PATCH v3 0/1] ubi: Introduce block devices for UBI volumes Ezequiel Garcia
2013-05-18 14:31 ` [PATCH v3 1/1] " Ezequiel Garcia
2013-06-04 14:41   ` Ezequiel Garcia
2013-06-21  1:55   ` Mike Frysinger
2013-09-27 23:02     ` Ezequiel Garcia
2013-05-18 14:31 ` [PATCH] ubi-utils: Add ubiblkvol tool Ezequiel Garcia

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.