UBI: Add ubi_open_volume_path
authorCorentin Chary <corentincj@iksaif.net>
Mon, 28 Sep 2009 19:10:11 +0000 (21:10 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 30 Sep 2009 07:48:26 +0000 (10:48 +0300)
commit76c65b183b6a9dc0537d1f3135fcb9d6277c5a81
treebada24724b9e08978d7dbe043ac44eb4b569591d
parent17d857be649a21ca90008c6dc425d849fa83db5c
UBI: Add ubi_open_volume_path

Add an 'ubi_open_volume_path(path, mode)' function which works like
'open_bdev_exclusive(path, mode, ...)' where path is the special file
representing the UBI volume, typically /dev/ubi0_0.

This is needed to teach UBIFS being able to mount UBI character devices.

[Comments and the patch were amended a bit by Artem]

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/kapi.c
include/linux/mtd/ubi.h