When and why to deprecate filesystems
When and why to deprecate filesystems
Posted Mar 8, 2022 2:10 UTC (Tue) by NYKevin (subscriber, #129325)In reply to: When and why to deprecate filesystems by pabs
Parent article: When and why to deprecate filesystems
This only has the slightest chance of working if both the source and the destination FS's are effectively equivalent (e.g. both ext4 with the same set of mount options). Even then, what happens if you try to copy a file (not directory) with a link count greater than one? Does it just break the link, and make a brand-new file on the destination? Or does the kernel somehow know that you were also planning to copy another link to the same file, and therefore it needs to recreate the hard link on the other side when you get around to copying that second link? rsync has enough information to figure that out, but the kernel probably does not.
