3 ms·
But then you have to be careful not to remove the one which happens to be the "original" or the hardlinks will break, right?
by Wowfunhappy 2y ago
But then you have to be careful not to remove the one which happens to be the "original" or the hardlinks will break, right?
- Dylan16807 2y agoNo, pointing to an original is how soft links work. Hard links are all equivalent. A file has any number of hard links, and at least in theory you can't distinguish between them. The risk with hardlinks is that you might alter the file. Reflinks remove that risk, and also perform very well.
- Wowfunhappy 2y agoThank you, I was unaware of this. However, the fact that editing one copy edits all of them still makes this a non-solution for me at least. I'd also strongly prefer deduping at the block level vs file level.
- mdaniel 2y agoI would suspect a call to $(chmod a-w) would fix that, or at least serve as a very fine reminder that there's something special about them