lib/ceph-ruby/rados_object.rb in ceph-ruby-ffi19-1.2 vs lib/ceph-ruby/rados_object.rb in ceph-ruby-ffi19-1.3

- old
+ new

@@ -21,10 +21,9 @@ def write(offset, data) size = data.bytesize log("write offset #{offset}, size #{size}") ret = Lib::Rados.rados_write(pool.handle, name, data, size, offset) raise SystemCallError.new("write of #{size} bytes to '#{name}' at #{offset} failed", -ret) if ret < 0 - raise Errno::EIO.new("wrote only #{ret} of #{size} bytes to '#{name}' at #{offset}") if ret < size end def read(offset, size) log("read offset #{offset}, size #{size}") data_p = FFI::MemoryPointer.new(:char, size)