From: "Martin K. Petersen" Subject: Re: [PATCH] sys/block: Add discard_support entry Date: Mon, 02 May 2011 09:43:06 -0400 Message-ID: References: <1304335504-14048-1-git-send-email-lczerner@redhat.com> Mime-Version: 1.0 Content-Type: text/plain Cc: linux-fsdevel@vger.kernel.org, Jens Axboe , Jeff Moyer To: Lukas Czerner Return-path: Received: from rcsinet10.oracle.com ([148.87.113.121]:35600 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754561Ab1EBNnS (ORCPT ); Mon, 2 May 2011 09:43:18 -0400 In-Reply-To: <1304335504-14048-1-git-send-email-lczerner@redhat.com> (Lukas Czerner's message of "Mon, 2 May 2011 13:25:04 +0200") Sender: linux-fsdevel-owner@vger.kernel.org List-ID: >>>>> "Lukas" == Lukas Czerner 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. -- Martin K. Petersen Oracle Linux Engineering