linux/drivers/s390/block
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
..
dasd.c s390/dasd: fix pathgroup race 2012-09-17 09:58:18 +02:00
dasd_3990_erp.c s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
dasd_alias.c s390/dasd: fix read unit address configuration loop 2012-09-17 09:58:21 +02:00
dasd_devmap.c s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
dasd_diag.c s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
dasd_diag.h s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
dasd_eckd.c s390/dasd: check count address during online setting 2012-09-26 15:45:26 +02:00
dasd_eckd.h s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
dasd_eer.c s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
dasd_erp.c s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
dasd_fba.c s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
dasd_fba.h s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
dasd_genhd.c s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
dasd_int.h s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
dasd_ioctl.c s390/dasd: fix return value for non-existent ioctls 2012-09-26 15:45:12 +02:00
dasd_proc.c s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
dcssblk.c
Kconfig s390/scm_block: force cluster writes 2012-09-26 15:45:01 +02:00
Makefile s390/scm_block: force cluster writes 2012-09-26 15:45:01 +02:00
scm_blk.c s390/scm_block: force cluster writes 2012-09-26 15:45:01 +02:00
scm_blk.h s390/scm_block: force cluster writes 2012-09-26 15:45:01 +02:00
scm_blk_cluster.c s390/scm_block: force cluster writes 2012-09-26 15:45:01 +02:00
scm_drv.c s390/scm: reorder scm_remove 2012-09-26 15:45:10 +02:00
xpram.c driver-core: remove sysdev.h usage. 2011-12-21 16:26:03 -08:00