Re: [PATCH] block: Add discard flag to blkdev_issue_zeroout() function

2015-01-21 Thread Jens Axboe
On 01/20/2015 06:06 PM, Martin K. Petersen wrote: blkdev_issue_discard() will zero a given block range. This is done by way of explicit writing, thus provisioning or allocating the blocks on disk. There are use cases where the desired behavior is to zero the blocks but unprovision them if

[PATCH] block: Add discard flag to blkdev_issue_zeroout() function

2015-01-20 Thread Martin K. Petersen
blkdev_issue_discard() will zero a given block range. This is done by way of explicit writing, thus provisioning or allocating the blocks on disk. There are use cases where the desired behavior is to zero the blocks but unprovision them if possible. The blocks must deterministically contain