Files
s390-tools/zdump
Alexander Egorenkov 455ad953a9 zdump: Fix /dev/mem reading
This commit makes zgetdump work with /dev/mem again.
zg_seek() should not attempt to verify the given offset for devices before
issuing lseek() because special devices like /dev/mem report 0 in
stat.sb_size.

$ zgetdump -i /dev/mem
zgetdump: Trying to seek past file end "/dev/mem"

Fixes: 11e78cada5 ("zdump: catch attempts to seek past end of file in zg_seek()")
Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
2022-02-21 12:54:34 +01:00
..
2019-12-12 18:04:32 +01:00
2021-11-10 15:12:10 +01:00
2021-11-10 15:12:10 +01:00
2019-12-12 18:04:32 +01:00
2021-11-10 15:12:10 +01:00
2021-12-09 16:19:25 +01:00
2021-12-09 16:19:25 +01:00
2021-12-09 16:19:25 +01:00
2022-02-21 12:54:34 +01:00
2021-12-09 16:19:25 +01:00
2021-11-10 15:12:10 +01:00