diff options
author | Artem Bityutskiy <dedekind1@gmail.com> | 2010-07-17 20:08:33 +0300 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-07-26 08:37:00 +0300 |
commit | f1e870c3e9a1a80be7a1d886d61ccac0f8e97e10 (patch) | |
tree | 6860d01fa73cba0bb5de6fcf4a19b7a2ac007e55 /tests/fs-tests/simple/perf.c | |
parent | 05f56bf49ee0de8979c29c11f61a01e30e964444 (diff) |
libmtd: support MEMERASE64
This patch is base on Kevin Cernekee's patch posted to the MTD mailing
list. It adds MEMERASE64 support to the 'mtd_erase()' call. Now it
first tries to use MEMERASE64, and if that is not supported, falls
back to the old MEMERASE ioctl.
This patch also introduces an 'offs64_ioctl' flag to the libmtd
descriptor. However, we cannot initialize it in 'libmtd_open()',
because we need an MTD device node, which we do not have in
'libmtd_open()'. Thus, we firs mark this flag as "uninitialized",
and at the first invocation of 'mtd_erase()' we initialize it.
This also means that we have to pass the limbtd descriptor to
'mtd_erase()', to save the flag value. This, in turn, requires
tweaking 'mtd_erase()' users.
This is not very nice, but good enough so far.
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