On 04/13/2016 07:23 AM, Hannes Reinecke wrote:
So I wonder if we should plumb this into blkdev_issue_zeroout(), not blk_issue_discard().
That's an excellent question. Let's take a step back and look at the functionality that is exposed to user space. What should the behavior of the BLKDISCARD and BLKSECDISCARD ioctls be if the start and/or end sectors are not aligned? My patch ensures that these ioctls do something meaningful if the start and/or end sector are not aligned on a discard boundary. Is that the behavior we want or should rather we make these ioctls fail if the start and/or end sectors are not aligned?
Bart. -- To unsubscribe from this list: send the line "unsubscribe linux-block" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html