arch-mirror icon indicating copy to clipboard operation
arch-mirror copied to clipboard

Stop rewriting symlinks

Open victorb opened this issue 7 years ago • 1 comments

Currently because of https://github.com/ipfs/go-ipfs/pull/3508, when we finished pulling down the arch mirror, we are rewriting all the symlinks with their targets, effectively doubling the size of the arch-repository on disk. This is not a big issue since when we add it to IPFS, de-duplication takes care of the sizing and we end up with good size again.

When symlinks are handled by go-ipfs, we can remove this step.

victorb avatar Mar 08 '18 12:03 victorb

I'm looking to do something similar with Gentoo-distfiles and symlinks is an issue that we kind of need a fix for. However in the mean time you might be able to create hard links instead, which would not take up more space, so ln -f "$abstarget" "$link" should work instead (rm should not be needed)

or use cp -l which does the hard linking

NiKiZe avatar Jul 21 '18 07:07 NiKiZe