On Thu, Oct 29, 2009 at 11:30:09PM -0400, Martin K. Petersen wrote: > +sd_show_thin_provisioning(struct device *dev, struct device_attribute *attr, > + char *buf) > +{ > + struct scsi_disk *sdkp = to_scsi_disk(dev); > + > + return snprintf(buf, 20, "%u\n", sdkp->thin_provisioning); > +} If we want to expose this we'd better do it at the block layer so that it also coverts non-scsi dicard support. Besides the mtd one already in tree I also plan to add a discard command to virtio-blk. -- 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