diff options
author | Jan Höppner <hoeppner@linux.ibm.com> | 2018-07-23 11:13:30 +0200 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2019-07-11 20:39:54 +0200 |
commit | 91dc4a197569230683ca8bad551e655a4bf14c30 (patch) | |
tree | 4cd4647b811278f165405a7eef4df952810be45c /drivers/s390/block/dasd_fba.h | |
parent | s390/dasd: Add dasd_sleep_on_queue_interruptible() (diff) | |
download | linux-91dc4a197569230683ca8bad551e655a4bf14c30.tar.xz linux-91dc4a197569230683ca8bad551e655a4bf14c30.zip |
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>
Diffstat (limited to 'drivers/s390/block/dasd_fba.h')
0 files changed, 0 insertions, 0 deletions