[ROOT] TFile::Init for remote files

From: Fedor Ratnikov (ratnikov@fnal.gov)
Date: Wed Feb 20 2002 - 01:56:24 MET


Hi,
connecting to remote files via rootd, I get messages like
Error in <TNetFile::TFile>: file
root://myhost:8181//cdf/data36a/CA5267.0/gd021742.0011tst1 is truncated
at 22 bytes: should be 1039471743, trying to recover
...
It recovers successfully but the message is annoying and recovery takes
time.
The reason is that TFile::GetSize() for some reason is forced to call
TFile::SysStat
rather than TNetFile::SysStat in case the object under consideration is
TNetFile.

What is the right way to avoid this error condition?

                 Thanks, Fedor.


--
MS318(CDF/Rutgers) Fermilab, Batavia, IL 60510 USA
Tel.:+1(630)840-8435           Fax:+1(630)840-6315



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:42 MET