Blame SOURCES/file-5.37-jffs-magic.patch

54376c
From 432267e707aca36bec55704fd404fa572e2c4b45 Mon Sep 17 00:00:00 2001
54376c
From: Christos Zoulas <christos@zoulas.com>
54376c
Date: Fri, 15 Nov 2019 23:49:38 +0000
54376c
Subject: [PATCH] fix JFFS2 (the old magic was just hex encoded 0x1984 which is
54376c
 wrong (Kamil Dudka)
54376c
54376c
Upstream-commit: 5ad78c726bb03e0fbdb6d237ef2b13e51968ffea
54376c
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
54376c
---
54376c
 magic/Magdir/filesystems | 6 ++----
54376c
 1 file changed, 2 insertions(+), 4 deletions(-)
54376c
54376c
diff --git a/magic/Magdir/filesystems b/magic/Magdir/filesystems
54376c
index 1920e56..da5c580 100644
54376c
--- a/magic/Magdir/filesystems
54376c
+++ b/magic/Magdir/filesystems
54376c
@@ -2057,10 +2057,6 @@
54376c
 >0x10040	lelong	2		yura hash
54376c
 >0x10040	lelong	3		r5 hash
54376c
 
54376c
-# JFFS - russell@coker.com.au
54376c
-0	lelong	0x34383931	Linux Journalled Flash File system, little endian
54376c
-0	belong	0x34383931	Linux Journalled Flash File system, big endian
54376c
-
54376c
 # EST flat binary format (which isn't, but anyway)
54376c
 # From: Mark Brown <broonie@sirena.org.uk>
54376c
 0	string	ESTFBINR	EST flat binary
54376c
@@ -2144,7 +2140,9 @@
54376c
 
54376c
 # JFFS2 file system
54376c
 0	leshort	0x1984		Linux old jffs2 filesystem data little endian
54376c
+0	beshort	0x1984		Linux old jffs2 filesystem data big endian
54376c
 0	leshort	0x1985		Linux jffs2 filesystem data little endian
54376c
+0	beshort	0x1985		Linux jffs2 filesystem data big endian
54376c
 
54376c
 # Squashfs
54376c
 0	string	sqsh	Squashfs filesystem, big endian,
54376c
-- 
54376c
2.20.1
54376c