trapexit / mergerfs-tools

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

Copy files for balancing but remove source only after checksum of cop… #133

Open pessimal opened 1 year ago

pessimal commented 1 year ago

…ied file matches source

pessimal commented 1 year ago

Makes things slower but helps me sleep at night. Maybe out of scope for tool as could be argued responsibility for file integrity lies with file system, just close if no interest.

trapexit commented 1 year ago

If I were to accept a change to support this it'd need to be optional and cleaned up. Shouldn't be using && like that and instead properly call subprocess call for each and compare exit codes.