UBI: Implement UBI_METAONLY
authorRichard Weinberger <richard@nod.at>
Mon, 24 Nov 2014 21:30:09 +0000 (22:30 +0100)
committerRichard Weinberger <richard@nod.at>
Wed, 28 Jan 2015 14:57:04 +0000 (15:57 +0100)
commitfafdd2bf2638157670f28462b641150d16dbaeca
tree717b6e07e8018eec9e6ac3e5ead6dedffbf4799c
parent346be9bc802ddbaf7ce2ad35145d1ddfba376594
UBI: Implement UBI_METAONLY

UBI_METAONLY is a new open mode for UBI volumes, it indicates
that only meta data is being changed.
Meta data in terms of UBI volumes means data which is stored in the
UBI volume table but not on the volume itself.
While it does not interfere with UBI_READONLY and UBI_READWRITE
it is not allowed to use UBI_METAONLY together with UBI_EXCLUSIVE.

Cc: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Cc: Andrew Murray <amurray@embedded-bits.co.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
Tested-by: Guido Martínez <guido@vanguardiasur.com.ar>
Reviewed-by: Guido Martínez <guido@vanguardiasur.com.ar>
Tested-by: Christoph Fritz <chf.fritz@googlemail.com>
Tested-by: Andrew Murray <amurray@embedded-bits.co.uk>
drivers/mtd/ubi/cdev.c
drivers/mtd/ubi/kapi.c
drivers/mtd/ubi/ubi.h
include/linux/mtd/ubi.h