Way to find out whether Write() and Save() succeeded?

Hi all,

My application writes a lot of ROOT files on a network-mounted file system. Sometimes, the file system breaks down and fails to write all buffers.

I can see such events every now and then in my logs as [ERROR] TFile::Write().... However, I am unable to detect them during the write operation. Commonly, I discover them only after attempting to open the produced files.

Is there a way for me to find out whether a TFile (and all its contents) has been succesfully written to disk upon closing it?


In most case, in case of failure, TFile::Write ought to return 0 (as opposed to the number bytes written).


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.