9
0
Fork 0

filetype: Add ubifs detection

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2013-07-24 16:06:15 +02:00
parent 9576c34252
commit d9abbe8d01
2 changed files with 3 additions and 0 deletions

View File

@ -203,6 +203,8 @@ enum filetype file_detect_type(const void *_buf, size_t bufsize)
return filetype_uimage;
if (buf[0] == 0x23494255)
return filetype_ubi;
if (buf[0] == le32_to_cpu(0x06101831))
return filetype_ubifs;
if (buf[0] == 0x20031985)
return filetype_jffs2;
if (buf8[0] == 0x1f && buf8[1] == 0x8b && buf8[2] == 0x08)

View File

@ -27,6 +27,7 @@ enum filetype {
filetype_png,
filetype_ext,
filetype_gpt,
filetype_ubifs,
filetype_max,
};