trapexit / mergerfs-tools

Optional tools to help manage data in a mergerfs pool
ISC License
372 stars 42 forks source link

[Feature Request] mergerfs.dedup verbose shows information of both the files being deleted and kept. #134

Open thenebular opened 1 year ago

thenebular commented 1 year ago

I was just using mergerfs.dedup for the first time and I wanted to do a test run before making any changes (the exact reason it won't do anything without -e flag). With the -vvv flag I get the info of the files that are going to be deleted, however I don't get any information on the file that is going to be kept for comparison. I understand that the files are supposed to be duplicates, but I like being able to verify that the tool is going to do it's job properly. If mergerfs.dedup gave the info of the files being kept as well as the files being deleted, I wouldn't need to look up each file manually to do that verification.

trapexit commented 1 year ago

Sure. I probably didn't add that originally because I'm assuming the file selected is the one that matched the logic provided but given the cost of a bug it definitely should spit out the details. It probably does in manual mode. Honestly, it's been a long time since I worked on this.

I'm a little busy right now but it probably isn't too much work to add. I'll try to take a look in the next week or so.