mtd: Import libmtd with modifications to make it compile
authorDan Ehrenberg <>
Tue, 14 Apr 2015 22:58:18 +0000 (15:58 -0700)
committerJens Axboe <>
Wed, 15 Apr 2015 00:16:23 +0000 (18:16 -0600)
mtd: Import libmtd with modifications to make it compile

This patch imports files from mtdutils to access MTD devices. mtdutils
is licensed as GPLv2, like fio, so it can be included here. Files are
changed slightly in how they import headers so as to be compatible
with the fio directory structure.

Signed-off-by: Dan Ehrenberg <>
Signed-off-by: Jens Axboe <>
lib/libmtd.c [new file with mode: 0644]
lib/libmtd.h [new file with mode: 0644]
lib/libmtd_common.h [new file with mode: 0644]
lib/libmtd_int.h [new file with mode: 0644]
lib/libmtd_legacy.c [new file with mode: 0644]
lib/libmtd_xalloc.h [new file with mode: 0644]