diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-09-05 10:11:54 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-09-05 10:11:54 +0200 |
commit | 88e132b2a8a6b50c19d6384403326081ef791d58 (patch) | |
tree | e4480b7abe780ee7a95b8c5406c20aec8d07c39f /common | |
parent | 6b0233be3886293f8db285ada525ad6da8b9c32f (diff) | |
parent | 551b412b16fa5e22d040cc49cd97cac1cc8029fc (diff) | |
download | barebox-88e132b2a8a6b50c19d6384403326081ef791d58.tar.gz barebox-88e132b2a8a6b50c19d6384403326081ef791d58.tar.xz |
Merge branch 'for-next/ubifs'
Diffstat (limited to 'common')
-rw-r--r-- | common/filetype.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/filetype.c b/common/filetype.c index 13c7994df5..7507d85de0 100644 --- a/common/filetype.c +++ b/common/filetype.c @@ -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) |