Christoph, Here are some more recent bits for you to tinker with. The first patch exports unmap granularity and alignment up the stack. I have also implemented support for topology stacking of these parameters. A reported discard granularity of 0 means fully provisioned. In the second patch I made a few changes to the TP detection and extraction of VPD values. I have been hunting for heuristics for the WRITE SAME case but haven't found any good ones. I'm thinking we probably want to distinguish between a real array with NV-backed unmap queueing and a thinly provisioned disk on a virtualization server where there might be a real impact from having to zero out partial blocks. I guess that's easy to handle with virtio but I'm not so sure how to do it when emulating a SCSI disk. -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html