Print

Print


The only way to update the modification time without actually writing to the file is to issue a truncate() request but specifying the actual size of the file. The file will not change but the mod time will be update. If you specify a size of zero then it's equivalent to opening it with the DELETE option. Of course, this is unsafe operation if other people are currently writing to the file but, based on what you say, this won't be happening.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/1737#issuecomment-1184954367
You are receiving this because you are subscribed to this thread.

Message ID: <[log in to unmask]>

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1