diff options
author | Jan Höppner <hoeppner@linux.ibm.com> | 2018-04-27 16:51:22 +0200 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2019-07-11 20:39:53 +0200 |
commit | 5e2b17e712cf10cc3cc98fde28a88e8f1a1267e9 (patch) | |
tree | 62dbb4a3d1a83bead5ec3c1b57d21d16afa24b89 /arch/s390 | |
parent | s390/dasd: Recognise data for ESE volumes (diff) | |
download | linux-5e2b17e712cf10cc3cc98fde28a88e8f1a1267e9.tar.xz linux-5e2b17e712cf10cc3cc98fde28a88e8f1a1267e9.zip |
s390/dasd: Add dynamic formatting support for ESE volumes
A dynamic formatting is issued whenever a write request returns with
either a No Record Found error (Command Mode), Incorrect Length error
(Transport Mode), or File Protected error (Transport Mode). All three
cases mean that the tracks in question haven't been initialized in a
desired format yet.
The part of the volume that was tried to be written on is then formatted
and the original request is re-queued.
As the formatting will happen during normal I/O operations, it is quite
likely that there won't be any memory available to build the respective
request. Another two pages of memory are allocated per volume
specifically for the dynamic formatting.
The dasd_eckd_build_format() function is extended to make sure that the
original startdev is reused. Also, all formatting and format check
functions use the new memory pool exclusively now to reduce complexity.
Read operations will always return zero data when unformatted areas are
read.
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
Reviewed-by: Stefan Haberland <sth@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390')
0 files changed, 0 insertions, 0 deletions