Ensure creation timestamps and modification timestamps are the same when a file is staged
Hi @nbugel ,
Frederic Hemmer from the LHCb experiment asked me whether a file that is staged from CTA keeps its associated creation/modification timestamp. As discussed with @jleduc privately, it came out that it's a nice feature to test in the CTA CI and ensure new EOS releases will not break this behavior.
The test can be the following:
- xrdcp a file in the EOSCTA buffer, then do a
eos fileinfo /path/to/file
on it - Look and record the creation, modification and change timestamps
- Once the file is properly archived, do again a fileinfo and look/record the creation, modification and change timestamps. Normally, only the change timestamp should have changed, the creation/modification should not.
- Retrieve the file and wait that it is retrieved on the SSD buffer
- Do another fileinfo and look/record the creation, modification and change timestamps. Normally, only the change timestamp should have changed, the creation/modification should not.
Don't hesitate to contact me should you have any question.
Thanks in advance !
Cheers, Cedric