UBI: rename_volumes: Use UBI_METAONLY
authorRichard Weinberger <richard@nod.at>
Mon, 24 Nov 2014 21:30:10 +0000 (22:30 +0100)
committerRichard Weinberger <richard@nod.at>
Wed, 28 Jan 2015 14:57:13 +0000 (15:57 +0100)
commit892abde56c1c5a62d49d8b70c73e5d388e74345d
treef2641cddfc53dc4ac8204a500ba630e7aede6cc8
parentfafdd2bf2638157670f28462b641150d16dbaeca
UBI: rename_volumes: Use UBI_METAONLY

By using UBI_METAONLY in rename_volumes() it is now possible to rename
an UBI volume atomically while it is open for writing.
This is useful for firmware upgrades.

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