get_file_data: avoid exposing users to copy_stream invocation
commitc16b4bcc3fe68de8ee3c615c5e2bfda80f900b9a
authorEric Wong <normalperson@yhbt.net>
Tue, 8 Nov 2011 09:11:19 +0000 (8 09:11 +0000)
committerEric Wong <normalperson@yhbt.net>
Tue, 8 Nov 2011 09:11:19 +0000 (8 09:11 +0000)
tree52f8e7e489f9542d2fa04d99487105917356baf1
parent100124a50620271e9c7317c28efacdee3cc568e3
get_file_data: avoid exposing users to copy_stream invocation

We'll now accept an optional argument which can be passed to
IO.copy_stream directly.  This should make life easier on users
so they won't be exposed to our internals to make efficient
copies of large files.
bin/mog
lib/mogilefs/copy_stream.rb
lib/mogilefs/mogilefs.rb
test/test_mogilefs_integration.rb
test/test_mogtool_bigfile.rb