diff options
author | Mika Westerberg <ext-mika.1.westerberg@nokia.com> | 2010-02-01 10:03:47 +0100 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-04-08 11:50:40 +0300 |
commit | 5960d463ff659b0af6774be8aef833032036e9c8 (patch) | |
tree | c0468a511e3088e984540ef0d910bc33a780b9b8 /tests/fs-tests/simple/perf.c | |
parent | 13b77ef356e876f42f489f6a08840e12847135c5 (diff) |
libubi: add support to attach/detach by MTD device path
struct ubi_attach_request now has additional field 'dev' that can contain path
to the MTD device node in the filesystem. Also there are two new functions that
are able to handle path to the MTD device node:
ubi_attach() - attach MTD device by number or by path
ubi_detach() - detach MTD device by path
ubi_attach() works like ubi_attach_mtd() when it is passed empty req->dev,
otherwise it looks up correct MTD device number based on the given device node
path.
Signed-off-by: Mika Westerberg <ext-mika.1.westerberg@nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'tests/fs-tests/simple/perf.c')
0 files changed, 0 insertions, 0 deletions