mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Phil Auld <pauld@egenera.com>
To: viro@math.psu.edu
Cc: marcelo@connectiva.com.br, linux-kernel@vger.kernel.org
Subject: [PATCH] 2.4.19 revert block_llseek behavior to standard
Date: Mon, 12 Aug 2002 12:06:59 -0400	[thread overview]
Message-ID: <20020812120659.B27650@vienna.EGENERA.COM> (raw)

Hi Al,
	I think this falls under the VFS umbrella, but I may be wrong. 

Below is a fix to make block_llseek behave as specified in the Single Unix Spec. v3.
(http://www.unix-systems.org/single_unix_specification/). It's extremely trivial but
may have political baggage.

--- fs/block_dev.c.orig	Mon Aug 12 09:23:19 2002
+++ fs/block_dev.c	Mon Aug 12 09:24:06 2002
@@ -175,7 +175,7 @@
 			offset += file->f_pos;
 	}
 	retval = -EINVAL;
-	if (offset >= 0 && offset <= size) {
+	if (offset >= 0) {
 		if (offset != file->f_pos) {
 			file->f_pos = offset;
 			file->f_reada = 0;


Thanks,

Phil

-- 
Philip R. Auld, Ph.D.                  Technical Staff 
Egenera Corp.                        pauld@egenera.com
165 Forest St., Marlboro, MA 01752       (508)858-2600

             reply	other threads:[~2002-08-12 16:03 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-12 16:06 Phil Auld [this message]
2002-08-12 16:20 ` Alan Cox
2002-08-12 16:36   ` Phil Auld
2002-08-12 17:14     ` Alan Cox
2002-08-12 17:57       ` Phil Auld
2002-08-12 18:06         ` Alan Cox
2002-08-12 18:14           ` Phil Auld
2002-08-12 18:06       ` Phil Auld
2002-08-12 16:46 ` Christoph Hellwig
2002-08-12 17:14   ` Phil Auld
2002-08-13  8:13   ` Helge Hafting
     [not found] <266483518@toto.iv>
2002-08-12 22:25 ` Peter Chubb

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=20020812120659.B27650@vienna.EGENERA.COM \
    --to=pauld@egenera.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@connectiva.com.br \
    --cc=viro@math.psu.edu \
    /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

all inboxes | Powered by JetHome®