Re: clone, hardlinks, and file modes (and CAP_FOWNER)

2018-08-24 Thread Andreas Krey
On Fri, 24 Aug 2018 16:48:37 +, Ævar Arnfjörð Bjarmason wrote: ... > I don't understand how this hardlink approach would work (doesn't mean > it won't, just that I don't get it). I just detect whether there is insufficient sharing (df is quite handy here; 'df this/.git that/.git' tells the

Re: clone, hardlinks, and file modes (and CAP_FOWNER)

2018-08-24 Thread Ævar Arnfjörð Bjarmason
On Fri, Aug 24 2018, Andreas Krey wrote: > I'm currently looking into more aggressively sharing space between multiple > repositories, > and into getting them to share again after one did a repack (which costs us > 15G space). > > One thing I stumbled on is the

clone, hardlinks, and file modes (and CAP_FOWNER)

2018-08-24 Thread Andreas Krey
Hi everybody, I'm currently looking into more aggressively sharing space between multiple repositories, and into getting them to share again after one did a repack (which costs us 15G space). One thing I stumbled on is the /proc/sys/fs/protected_hardlinks stuff which disallows hardlinking