On Mon, 2 May 2011, Martin K. Petersen wrote: > >>>>> "Lukas" == Lukas Czerner <lczerner@xxxxxxxxxx> writes: > > Lukas> Currently there is no convenient way how to get the information > Lukas> from userspace whether or not the block device supports discard > Lukas> other than try to call BLKDISCARD ioctl and check the result, > Lukas> which is not really good way to do it. > > Not true. If discard_max_bytes is > 0 then discard is supported. > Yes I thought about that, but it is not actually *very* obvious and I was not even sure it works this way all the time. I think it is better to have a real sysfs file. Thanks! -Lukas -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html