Re: [PATCH] sys/block: Add discard_support entry

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux