From: Greg KH <greg@kroah.com>
To: Lukas Czerner <lczerner@redhat.com>
Cc: linux-fsdevel@vger.kernel.org, Jens Axboe <jaxboe@fusionio.com>,
Jeff Moyer <jmoyer@redhat.com>
Subject: Re: [PATCH] sys/block: Add discard_support entry
Date: Mon, 2 May 2011 10:36:10 -0700 [thread overview]
Message-ID: <20110502173610.GA13337@kroah.com> (raw)
In-Reply-To: <1304335504-14048-1-git-send-email-lczerner@redhat.com>
On Mon, May 02, 2011 at 01:25:04PM +0200, Lukas Czerner wrote:
> Currently there is no convenient way how to get the information from
> userspace whether or not the block device supports discard other
> than try to call BLKDISCARD ioctl and check the result, which is not
> really good way to do it.
>
> We already have BLKDISCARDZEROES ioctl and
> /sys/block/sda/queue/discard_zeroes_data to tell whether subsequent
> reads after discard returns all zeroes. This commit adds at least sysfs
> interface /sys/block/sda/queue/discard_support to tell whether device
> support discard.
>
> Signed-off-by: Lukas Czerner <lczerner@redhat.com>
> Cc: Jens Axboe <jaxboe@fusionio.com>
> Cc: Jeff Moyer <jmoyer@redhat.com>
> ---
> block/blk-sysfs.c | 11 +++++++++++
If you ever change/add/remove a sysfs file, you also need a
Documentation/ABI/ entry. Please include that in the next revision of
this patch, if you do one.
thanks,
greg k-h
next prev parent reply other threads:[~2011-05-02 17:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-02 11:25 [PATCH] sys/block: Add discard_support entry Lukas Czerner
2011-05-02 13:43 ` Martin K. Petersen
2011-05-02 13:58 ` Lukas Czerner
2011-05-02 14:18 ` Martin K. Petersen
2011-05-02 14:46 ` Lukas Czerner
2011-05-02 15:18 ` Martin K. Petersen
2011-05-03 11:33 ` Lukas Czerner
2011-05-02 17:36 ` Greg KH [this message]
2011-05-03 11:36 ` Lukas Czerner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110502173610.GA13337@kroah.com \
--to=greg@kroah.com \
--cc=jaxboe@fusionio.com \
--cc=jmoyer@redhat.com \
--cc=lczerner@redhat.com \
--cc=linux-fsdevel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).