The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@zip.com.au>
To: Phil Auld <pauld@egenera.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: why is lseek broken (>= 2.4.11) ?
Date: Fri, 09 Aug 2002 13:48:47 -0700	[thread overview]
Message-ID: <3D542AAE.64B70B55@zip.com.au> (raw)
In-Reply-To: 20020809084915.P3542@vienna.EGENERA.COM

Phil Auld wrote:
> 
> Hi folks,
> 
> There was a brief thread a couple of months ago about the change in
> lseek for block devices. The thread is here:
> 
> http://marc.theaimsgroup.com/?t=102406030100003&r=1&w=2
> 
> The change, which looks to have come in with 2.4.11, returns
> EINVAL from an lseek on a block device attempting to set pos past
> the size of the device.
> 
> This causes current versions glibc to exhibit non-SUS3 lseek behavior.
> 
> Are there plans to revert this? It seems that this is something that
> should be addressed in glibc first and then have the kernel change.
> 
> There is no resolution in the thread above, nor is there any
> justification for the change. It just peters out.

What should the behaviour be?   The lseek should succeed,
but subsequent reads and writes return zero?

  reply	other threads:[~2002-08-09 20:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-09 12:49 why is lseek broken (>= 2.4.11) ? Phil Auld
2002-08-09 20:48 ` Andrew Morton [this message]
2002-08-09 21:13   ` Andries Brouwer
2002-08-09 21:42     ` Phil Auld

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=3D542AAE.64B70B55@zip.com.au \
    --to=akpm@zip.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pauld@egenera.com \
    /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