about summary refs log tree commit homepage
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
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>
-rwxr-xr-xGIT-VERSION-GEN2
-rw-r--r--Rakefile2
-rw-r--r--ext/io_splice/io_splice_ext.c2
-rw-r--r--lib/io/splice.rb4
4 files changed, 5 insertions, 5 deletions
diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN
index 4e7f0e3..0550f7e 100755
--- a/GIT-VERSION-GEN
+++ b/GIT-VERSION-GEN
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 GVF=GIT-VERSION-FILE
-DEF_VER=v0.1.0.GIT
+DEF_VER=v2.0.0.GIT
 
 LF='
 '
diff --git a/Rakefile b/Rakefile
index 53c944c..5b2600f 100644
--- a/Rakefile
+++ b/Rakefile
@@ -137,7 +137,7 @@ task :raa_update do
     :name => s.name,
     :short_description => s.summary,
     :version => s.version.to_s,
-    :status => 'experimental',
+    :status => 'stable',
     :owner => s.authors.first,
     :email => s.email,
     :category_major => 'Library',
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));
 
diff --git a/lib/io/splice.rb b/lib/io/splice.rb
index 25ef653..2c5f5ac 100644
--- a/lib/io/splice.rb
+++ b/lib/io/splice.rb
@@ -5,8 +5,8 @@ class IO
 
   module Splice
 
-    # the version of IO::Splice, currently 0.1.0
-    VERSION = '1.0.0'
+    # the version of IO::Splice, currently 2.0.0
+    VERSION = '2.0.0'
 
     # The maximum default capacity of the pipe in bytes.
     # Under stock Linux, this is 65536 bytes as of 2.6.11, and 4096 before