trapexit / mergerfs-tools

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

[Feature Request] Make mergerfs.balance be aware of hard links #132

Open xsm1997 opened 1 year ago

xsm1997 commented 1 year ago

I use hard links frequently. So, it will be awesome for mergerfs.balance to ignore files with multiple links (e.g., hard links), because moving those files to another partition will leads to duplicate space occupy. You can get this property in stat command or function.

You can detect all instances of those files, and move all of them to another partition, of course. But if it is too complicated, you can simply ignore those files.