There are no technical limitations preventing the use of cp -a --reflink=always on directory pairs. With a few extensions to attribute preservation code, this seems to produce correct results.
modify rm_util_link_type() to specifically detect directory pairs
modify sh output generator to emit cp_reflink for directory pairs
modify sh template to support reflinking directories and extend
stampfile code to preserve attributes recursively
This also builds on @Cebtenzzre's patch improving stampfile handling in the sh output generator.
There are no technical limitations preventing the use of
cp -a --reflink=always
on directory pairs. With a few extensions to attribute preservation code, this seems to produce correct results.This also builds on @Cebtenzzre's patch improving stampfile handling in the sh output generator.
Fixes #618.