public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: David Jeffery <djeffery@redhat.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Return short read or 0 at end of a raw device, not EIO
Date: Mon, 29 Sep 2014 12:05:09 -0700	[thread overview]
Message-ID: <20140929190509.GA2767@infradead.org> (raw)
In-Reply-To: <20140929142110.GA12562@fury.redhat.com>

On Mon, Sep 29, 2014 at 10:21:10AM -0400, David Jeffery wrote:
> Changes to the basic direct I/O code have broken the raw driver when reading
> to the end of a raw device.  Instead of returning a short read for a read that
> extends partially beyond the device's end or 0 when at the end of the device,
> these reads now return EIO.

Seems like this should be changed in the generic code, or is there some
reason why it would return EIO only for devices, but not for regular
files in this case?


  parent reply	other threads:[~2014-09-29 19:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-29 14:21 [PATCH] Return short read or 0 at end of a raw device, not EIO David Jeffery
2014-09-29 16:46 ` Jeff Moyer
2014-09-29 19:05 ` Christoph Hellwig [this message]
2014-09-29 22:08   ` David Jeffery
2014-09-30 15:28     ` Christoph Hellwig
2014-09-30 16:37       ` David Jeffery
2014-10-10 17:17         ` Jeff Moyer
2014-10-11 10:17           ` Christoph Hellwig
2014-10-31  8:57 ` Christoph Hellwig
2014-10-31 10:35   ` Al Viro

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=20140929190509.GA2767@infradead.org \
    --to=hch@infradead.org \
    --cc=djeffery@redhat.com \
    --cc=linux-kernel@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