On Mon, 2 May 2011, Martin K. Petersen wrote: > >>>>> "Lukas" == Lukas Czerner <lczerner@xxxxxxxxxx> writes: > > >> Not true. If discard_max_bytes is > 0 then discard is supported. > >> > > Lukas> Yes I thought about that, but it is not actually *very* obvious > Lukas> and I was not even sure it works this way all the time. I think > Lukas> it is better to have a real sysfs file. > > To me it's pretty obvious that if the device reports a max discard size > of 0 then discard is not supported. > So is that documented somewhere ? Because to me it is really not obvious whether 0 means that the device does not support discard, or the device just does not report discard_max_bytes at all. -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