mschorm / rpms / file

Forked from rpms/file 3 years ago
Clone
c32d959
From ed6062995ae60d6772f2dabc39e03cbf28ee7343 Mon Sep 17 00:00:00 2001
c32d959
From: Christos Zoulas <christos@zoulas.com>
c32d959
Date: Mon, 16 Jul 2018 12:32:08 +0000
c32d959
Subject: [PATCH] more info for ppc swapspace (Kamil Dudka)
c32d959
c32d959
Upstream-commit: 65f9c7053548df8945df600c07123c9151531ee6
c32d959
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
c32d959
---
c32d959
 magic/Magdir/linux | 10 ++++++++++
c32d959
 1 file changed, 10 insertions(+)
c32d959
c32d959
diff --git a/magic/Magdir/linux b/magic/Magdir/linux
c32d959
index 0630a8a..11e9237 100644
c32d959
--- a/magic/Magdir/linux
c32d959
+++ b/magic/Magdir/linux
c32d959
@@ -94,6 +94,16 @@
c32d959
 # From Daniel Novotny <dnovotny@redhat.com>
c32d959
 # swap file for PowerPC
c32d959
 65526	string		SWAPSPACE2	Linux/ppc swap file
c32d959
+>0x400	long		x		version %d,
c32d959
+>0x404	long		x		size %d pages,
c32d959
+>1052	string		\0		no label,
c32d959
+>1052	string		>\0		LABEL=%s,
c32d959
+>0x40c	belong		x		UUID=%08x
c32d959
+>0x410	beshort		x		\b-%04x
c32d959
+>0x412	beshort		x		\b-%04x
c32d959
+>0x414	beshort		x		\b-%04x
c32d959
+>0x416	belong		x		\b-%08x
c32d959
+>0x41a	beshort		x		\b%04x
c32d959
 16374	string		SWAPSPACE2	Linux/ia64 swap file
c32d959
 #
c32d959
 # Linux kernel boot images, from Albert Cahalan <acahalan@cs.uml.edu>
c32d959
-- 
c32d959
2.14.4
c32d959