Re: Bug in handling hard links in bind-mounted directories

2022-01-12 Thread Derek Pressnall
> Tar uses link count to decide whether a file might be a hard link to > another file. In this test case, link count of bleh is 1, so it skips > hardlink detection phase. To force hardlink detection, use the -h > (--dereference) option: It appears this behavior is set in the trivial_link_count v

Re: Bug in handling hard links in bind-mounted directories

2022-01-12 Thread Paul Eggert
On 1/12/22 14:50, Derek Pressnall wrote: My assumption was that this logic (to track inodes for all files if more than one file was listed) was put in place to handle cases where there may be a bind mount Actually I expect it's because if more than one file is listed then there may be multip