diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2008-08-11 16:58:42 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-10-09 08:56:02 +0200 |
commit | d30a2605be9d5132d95944916e8f578fcfe4f976 (patch) | |
tree | 91a8161cb09536ab838ef47fceabb0da0bea9256 /block/blk-barrier.c | |
parent | Use WRITE_BARRIER in blkdev_issue_flush(), not (1<<BIO_RW_BARRIER) (diff) | |
download | linux-d30a2605be9d5132d95944916e8f578fcfe4f976.tar.xz linux-d30a2605be9d5132d95944916e8f578fcfe4f976.zip |
Add BLKDISCARD ioctl to allow userspace to discard sectors
We may well want mkfs tools to use this to mark the whole device as
unwanted before they format it, for example.
The ioctl takes a pair of uint64_ts, which are start offset and length
in _bytes_. Although at the moment it might make sense for them both to
be in 512-byte sectors, I don't want to limit the ABI to that.
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block/blk-barrier.c')
0 files changed, 0 insertions, 0 deletions