about summary refs log tree commit homepage
path: root/ext/io_splice
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-06-05 08:36:16 +0000
committerEric Wong <normalperson@yhbt.net>2010-06-05 08:47:41 +0000
commit2b95ba46ee144eb3a22054ae98a6416996136469 (patch)
tree3cdb43dd73a4e3fcbfb331d92a868f2988570ec9 /ext/io_splice
parent901e6061348490b3ea5d1e08be5b08c9601ad310 (diff)
downloadruby_io_splice-2b95ba46ee144eb3a22054ae98a6416996136469.tar.gz
There is a new IO::Splice.copy_stream method which is similar to
the IO.copy_stream method in 1.9 core, but uses splice()
internally to avoid copies to userspace in situations where
sendfile() is not possible.

With Linux 2.6.35 (and header files to match), we will also
export the F_GETPIPE_SZ and and F_SETPIPE_SZ constants so
they can be used with fcntl() to resize pipe buffers.

The documentation is also updated to reflect the returned
usefulness of the IO::Splice::F_MOVE constant for FUSE
filesystems under Linux 2.6.35.

I've also relicensed to LGPLv2.1+ (from LGPLv3-only) to allow
bundling with GPLv2-only applications (I'm currently the sole
copyright holder).

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to 'ext/io_splice')
-rw-r--r--ext/io_splice/io_splice_ext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/io_splice/io_splice_ext.c b/ext/io_splice/io_splice_ext.c
index 5ee5cd0..32fe782 100644
--- a/ext/io_splice/io_splice_ext.c
+++ b/ext/io_splice/io_splice_ext.c
@@ -372,7 +372,7 @@ void Init_io_splice_ext(void)
         /*
          * Attempt to move pages instead of copying.  This is only a hint
          * and support for it was removed in Linux 2.6.21.  It will be
-         * re-added for FUSE devices only in Linux 2.6.35.
+         * re-added for FUSE filesystems only in Linux 2.6.35.
          */
         rb_define_const(mSplice, "F_MOVE", UINT2NUM(SPLICE_F_MOVE));