JasonAlt / GridFTP-DSI-for-HPSS

GridFTP module that allows the Globus server to work with HPSS
Other
6 stars 2 forks source link

Modification timestamps are zero #40

Closed JasonAlt closed 5 years ago

JasonAlt commented 5 years ago

Version 2.7, source/module/stat.c:

GFSStat->atime = DirEntry->Attrs.TimeLastRead;
GFSStat->mtime = DirEntry->Attrs.TimeLastWritten;
GFSStat->ctime = DirEntry->Attrs.TimeCreated;

Turns out TimeLastWritten can be zero. The reason why is not clear. The proposed fix is:

atime : TimeLastRead unless 0 then TimeCreated
ctime: TimeModifed unless 0 then TimeCreated
mtime: TimeLastWritten unless 0 then TimeCreated