Respect timeout when doing get_file_data
commitc07be896889f13235bda1bd32983261e73513a70
authorEric Wong <normalperson@yhbt.net>
Wed, 25 Mar 2009 01:56:50 +0000 (24 18:56 -0700)
committerEric Wong <normalperson@yhbt.net>
Wed, 25 Mar 2009 02:18:24 +0000 (24 19:18 -0700)
tree073f5a3741b84576088eb1d332ddd5f50bfb0fe9
parenta69925d4b4671fe65e54e34a009e17fb1fa47700
Respect timeout when doing get_file_data

This adds a sysread_full utility method with configurable
timeouts.  Individual reads can be timed out as well as
the entire sysread_full call.
lib/mogilefs/mogilefs.rb
lib/mogilefs/util.rb
test/test_util.rb