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>
Tue, 24 Nov 2009 06:18:54 +0000 (08:18 +0200)
commitb57102841846d9840dcb1b8b308f6d7369b8e5c5
tree5792c36c373eef0be91714e5a7a3b83d8cf62960
parent648f4e3e50c4793d9dbf9a09afa193631f76fa26
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