mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
In certain storage setups the Release Allocated Space (RAS) command to free up space on the storage server previously allocated for an ESE DASD might not work. At the moment dasdfmt will error out if RAS is failing. This however is not ideal for the default case when a user is expecting dasdfmt to simply format the disk. One workaround would be to specify --no-discard to disable RAS completely. However, a sane default handling that tries to work every time is more reasonable. Change the default handling as follows: If an ESE is detected default to QUICK mode and try RAS. If RAS fails, fall back to the FULL format mode and display a warning accordingly. If -M (--mode) QUICK is specified explicitly dasdfmt will still error out on a failing RAS. A combination with --no-discard will still allow for a QUICK format on an ESE DASD in that case, if desired. Reviewed-by: Stefan Haberland <sth@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>