From f457a4f8b9a59906cde1b6577e7116944a37d2d0 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 26 Apr 2022 12:06:18 +0200 Subject: [PATCH] Added missing stream type names to a diagnostic function --- libisofs/stream.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/libisofs/stream.c b/libisofs/stream.c index de22eb6..44da78f 100644 --- a/libisofs/stream.c +++ b/libisofs/stream.c @@ -852,12 +852,24 @@ void iso_stream_get_file_name(IsoStream *stream, char *name) strncpy(name, path, PATH_MAX - 1); name[PATH_MAX - 1] = 0; free(path); - } else if (!strncmp(type, "boot", 4)) { - strcpy(name, "BOOT CATALOG"); + } else if (!strncmp(type, "cout", 4)) { + strcpy(name, "CUT_OUT FILE"); } else if (!strncmp(type, "mem ", 4)) { strcpy(name, "MEM SOURCE"); + } else if (!strncmp(type, "boot", 4)) { + strcpy(name, "BOOT CATALOG"); } else if (!strncmp(type, "extf", 4)) { strcpy(name, "EXTERNAL FILTER"); + } else if (!strncmp(type, "ziso", 4)) { + strcpy(name, "ZISOFS COMPRESSION FILTER"); + } else if (!strncmp(type, "osiz", 4)) { + strcpy(name, "ZISOFS DECOMPRESSION FILTER"); + } else if (!strncmp(type, "gzip", 4)) { + strcpy(name, "GZIP COMPRESSION FILTER"); + } else if (!strncmp(type, "pizg", 4)) { + strcpy(name, "GZIP DECOMPRESSION FILTER"); + } else if (!strncmp(type, "user", 4)) { + strcpy(name, "USER SUPPLIED STREAM"); } else { strcpy(name, "UNKNOWN SOURCE"); }