linux/drivers/s390
Stefan Haberland 3bc9fef9cc s390/dasd: check count address during online setting
A common way to prepare a z/VM mini disk is to format the real device
with a z/VM tool like CPFMTXA and then define a mini disk that excludes
the first cylinder, i.e. the cylinder 0 of the virtual disk is located
at cylinder 1 of the real device.

The DASD device driver will recognize such a mini disk as formatted, as
the uniform record layout on the disk matches that of an LDL formatted
device. However, the cylinder value in the 'count' field of the ECKD
records matches the geometry of the real device, and not that of the
mini disk, so I/O requests will fail with 'record not found' errors.

To make the mini disk usable, it needs to be formatted with a tool like
dasdfmt. To enable tools like distribution installation tools to
recognize this situation, the DASD device driver should report such a
mini disk as 'not formatted'.
To this end we need to extend the device recognition code to check not
just for proper record sizes, but also for proper cylinder/head/record
values.

Signed-off-by: Stefan Haberland <stefan.haberland@de.ibm.com>
Reviewed-by: Stefan Weinhuber <wein@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2012-09-26 15:45:26 +02:00
..
block s390/dasd: check count address during online setting 2012-09-26 15:45:26 +02:00
char drivers/s390/char/monreader.c: fix error return code 2012-09-26 15:45:26 +02:00
cio s390: add uninitialized_var() to suppress false positive compiler warnings 2012-09-26 15:45:23 +02:00
crypto s390/ap_bus: add missing ifdef 2012-09-26 15:45:19 +02:00
kvm KVM updates for the 3.6 merge window 2012-07-24 12:01:20 -07:00
net s390/sysinfo,stsi: change return code handling 2012-09-26 15:45:12 +02:00
scsi s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
Makefile [S390] split/move machine check handler code 2009-03-26 15:24:10 +01:00