Jan Höppner 91dc4a1975 s390/dasd: Add new ioctl to release space
Userspace tools might have the need to release space for Extent Space
Efficient (ESE) volumes when working with such a device.

Provide the necessarry interface for such a task by implementing a new
ioctl BIODASDRAS. The ioctl uses the format_data_t data structure for
data input:

typedef struct format_data_t {
        unsigned int start_unit;        /* from track */
        unsigned int stop_unit;         /* to track */
        unsigned int blksize;           /* sectorsize */
        unsigned int intensity;
} format_data_t;

If the intensity is set to 0x40, start_unit and stop_unit are ignored
and space for the entire volume is released. Otherwise, if intensity is
set to 0, the respective range is released (if possible).

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>
2019-07-11 20:39:54 +02:00
..
2019-07-08 09:54:55 -07:00
2019-07-08 09:54:55 -07:00
2019-06-21 09:58:42 -07:00
2019-07-06 10:06:37 -07:00
2019-06-08 12:52:42 -07:00
2019-06-21 10:20:19 -07:00
2019-06-21 09:58:42 -07:00
2019-06-22 14:08:47 -07:00
2019-07-08 09:54:55 -07:00
2019-05-31 08:34:32 -07:00
2019-06-25 03:41:03 +08:00
2019-06-21 10:18:16 -07:00
2019-06-21 09:58:42 -07:00
2019-06-26 13:26:08 -07:00
2019-06-08 12:52:42 -07:00
2019-07-08 09:54:55 -07:00
2019-06-29 16:59:45 +08:00
2019-06-10 18:07:39 +02:00
2019-07-06 09:56:20 -07:00
2019-06-20 11:56:35 +02:00