Re: [PATCH] O_STREAMING - flag for optimal streaming I/O

From: Marco Colombo (marco@esi.it)
Date: Wed Oct 09 2002 - 09:10:30 EST


On 7 Oct 2002, Robert Love wrote:

> Attached patch implements an O_STREAMING file I/O flag which enables
> manual drop-behind of pages.

[...]
> diff -urN linux-2.4.20-pre9/include/asm-i386/fcntl.h linux/include/asm-i386/fcntl.h
> --- linux-2.4.20-pre9/include/asm-i386/fcntl.h 2002-10-06 14:57:21.000000000 -0400
> +++ linux/include/asm-i386/fcntl.h 2002-10-07 18:45:51.000000000 -0400
> @@ -20,6 +20,7 @@
> #define O_LARGEFILE 0100000
> #define O_DIRECTORY 0200000 /* must be a directory */
> #define O_NOFOLLOW 0400000 /* don't follow links */
> +#define O_STREAMING 04000000 /* streaming access */
                        ^^^^^^^^^^^^^
>
> #define F_DUPFD 0 /* dup */
> #define F_GETFD 1 /* get close_on_exec */
> diff -urN linux-2.4.20-pre9/include/asm-mips/fcntl.h linux/include/asm-mips/fcntl.h
> --- linux-2.4.20-pre9/include/asm-mips/fcntl.h 2002-10-06 14:57:21.000000000 -0400
> +++ linux/include/asm-mips/fcntl.h 2002-10-07 18:45:51.000000000 -0400
> @@ -26,6 +26,7 @@
> #define O_DIRECT 0x8000 /* direct disk access hint */
> #define O_DIRECTORY 0x10000 /* must be a directory */
> #define O_NOFOLLOW 0x20000 /* don't follow links */
> +#define O_STREAMING 0x400000 /* streaming access */
                        ^^^^^^^^^^^^^
>
> #define O_NDELAY O_NONBLOCK

04000000 != 0x400000

or am I missing something?
(do different archs dream of different O_STREAMING values?)

.TM.

-- 
      ____/  ____/   /
     /      /       /			Marco Colombo
    ___/  ___  /   /		      Technical Manager
   /          /   /			 ESI s.r.l.
 _____/ _____/  _/		       Colombo@ESI.it

- 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 : Tue Oct 15 2002 - 22:00:30 EST