mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
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 <egorenar@linux.ibm.com> Signed-off-by: Mikhail Zaslonko <zaslonko@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
committed by
Steffen Eiden
parent
0b0960254e
commit
6c4171b775
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user