You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been looking into how an archive's id being generated, and I found function compute_id. It computes the hash of the first 512 KB as the id.
Then, in the function add_to_filemap, if the archive is a complete duplicate one (e.g. by copying an archive to another directory), it will have a debug log:
$logger->debug("$file has the same ID as the one in the filemap. Duplicate inotify events? Cleaning cache just to make sure");
Here is what confuses me, what will happen to the duplicate archive? Since the two archives has the same id, nothing should happen. So the duplicate one will always be seen as an irregular file to shinobu, which will always generates a debug log, until I remove it manually?
If I want to keep both archives, what should I do if I don't want to modify the archives?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've been looking into how an archive's id being generated, and I found function
compute_id
. It computes the hash of the first 512 KB as the id.Then, in the function
add_to_filemap
, if the archive is a complete duplicate one (e.g. by copying an archive to another directory), it will have a debug log:Here is what confuses me, what will happen to the duplicate archive? Since the two archives has the same id, nothing should happen. So the duplicate one will always be seen as an irregular file to shinobu, which will always generates a debug log, until I remove it manually?
If I want to keep both archives, what should I do if I don't want to modify the archives?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions