summaryrefslogtreecommitdiff
path: root/drivers/s390/kvm
diff options
context:
space:
mode:
authorStefan Haberland <stefan.haberland@de.ibm.com>2012-09-20 20:37:36 +0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2012-09-26 17:45:26 +0400
commit3bc9fef9cc1e4047c3a3c51d84cc1c5d2ef03cea (patch)
tree54a33b235bc5e19f2074fce702ddbcf73f8af6e3 /drivers/s390/kvm
parent72abaadf25f2bc6098740622e4ed526775b197f9 (diff)
downloadlinux-3bc9fef9cc1e4047c3a3c51d84cc1c5d2ef03cea.tar.xz
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>
Diffstat (limited to 'drivers/s390/kvm')
0 files changed, 0 insertions, 0 deletions