From: David Woodhouse Date: Mon, 11 Aug 2008 14:58:42 +0000 (+0100) Subject: Add BLKDISCARD ioctl to allow userspace to discard sectors X-Git-Tag: v2.6.28-rc1~733^2~118 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d30a2605be9d5132d95944916e8f578fcfe4f976;p=pandora-kernel.git 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 Signed-off-by: Jens Axboe --- Reading git-diff-tree failed