diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2008-08-11 10:58:42 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-10-09 02:56:02 -0400 |
commit | d30a2605be9d5132d95944916e8f578fcfe4f976 (patch) | |
tree | 91a8161cb09536ab838ef47fceabb0da0bea9256 /include/linux | |
parent | 2ebca85abcfcbaaf1c0b242e39fc88ad3da90090 (diff) |
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 'include/linux')
-rw-r--r-- | include/linux/fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index eb013131913..88358ca6af2 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -223,6 +223,7 @@ extern int dir_notify_enable; | |||
223 | #define BLKTRACESTART _IO(0x12,116) | 223 | #define BLKTRACESTART _IO(0x12,116) |
224 | #define BLKTRACESTOP _IO(0x12,117) | 224 | #define BLKTRACESTOP _IO(0x12,117) |
225 | #define BLKTRACETEARDOWN _IO(0x12,118) | 225 | #define BLKTRACETEARDOWN _IO(0x12,118) |
226 | #define BLKDISCARD _IO(0x12,119) | ||
226 | 227 | ||
227 | #define BMAP_IOCTL 1 /* obsolete - kept for compatibility */ | 228 | #define BMAP_IOCTL 1 /* obsolete - kept for compatibility */ |
228 | #define FIBMAP _IO(0x00,1) /* bmap access */ | 229 | #define FIBMAP _IO(0x00,1) /* bmap access */ |