mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] 2.5.31 revert block_llseek to standard behavior
@ 2002-08-12 16:15 Phil Auld
  0 siblings, 0 replies; only message in thread
From: Phil Auld @ 2002-08-12 16:15 UTC (permalink / raw)
  To: vire; +Cc: torvalds, linux-kernel

Hi Al,

	Same patch against the 2.5.31 tree. 

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:25:40 2002
+++ fs/block_dev.c	Mon Aug 12 09:26:14 2002
@@ -164,7 +164,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_version = ++event;



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] only message in thread

only message in thread, other threads:[~2002-08-12 16:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-12 16:15 [PATCH] 2.5.31 revert block_llseek to standard behavior Phil Auld

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®