[PATCH] 2.4.19 revert block_llseek behavior to standard

From: Phil Auld (pauld@egenera.com)
Date: Mon Aug 12 2002 - 11:06:59 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Aug 15 2002 - 22:00:28 EST