From 6c4171b7750de111fbedff3ac0116693f7145d9d Mon Sep 17 00:00:00 2001 From: Mikhail Zaslonko Date: Tue, 18 Jun 2024 18:36:16 +0200 Subject: [PATCH] zdump/dfi_s390: Adjust device type check for s390_ext dump In order to allow loop devices usage for DASD dump emulation in fvt-tests, do not bail out on ZG_TYPE_DASD device type returned by zg_type() for s390_ext dump. Reviewed-by: Alexander Egorenkov Signed-off-by: Mikhail Zaslonko Signed-off-by: Steffen Eiden --- zdump/dfi_s390.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/zdump/dfi_s390.c b/zdump/dfi_s390.c index f3a1f82c..c7d1f98a 100644 --- a/zdump/dfi_s390.c +++ b/zdump/dfi_s390.c @@ -349,8 +349,13 @@ int dfi_s390_init_gen(bool extended) if (!extended) { rc = mem_chunks_add(); } else { - /* Dumps in s390_ext format can reside on DASD partition only */ - if (zg_type(g.fh) != ZG_TYPE_DASD_PART) + /* + * Dumps in s390_ext format can reside on DASD partition only. + * Do not bail out on ZG_TYPE_DASD in order to support loop device + * emulation in fvt-tests. + */ + if (zg_type(g.fh) != ZG_TYPE_DASD_PART && + zg_type(g.fh) != ZG_TYPE_DASD) return -ENODEV; /* * A device block size is required for a decompression of