mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] 2.4.19 revert block_llseek behavior to standard
@ 2002-08-12 16:06 Phil Auld
  2002-08-12 16:20 ` Alan Cox
  2002-08-12 16:46 ` Christoph Hellwig
  0 siblings, 2 replies; 12+ messages in thread
From: Phil Auld @ 2002-08-12 16:06 UTC (permalink / raw)
  To: viro; +Cc: marcelo, linux-kernel

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

^ permalink raw reply	[flat|nested] 12+ messages in thread
[parent not found: <266483518@toto.iv>]

end of thread, other threads:[~2002-08-13  8:07 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-12 16:06 [PATCH] 2.4.19 revert block_llseek behavior to standard Phil Auld
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

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®