Project.pm: decline to set up cross device alternates
commita4d1d13ceb32c6d7aa3bef8bb2d22be2b4383a86
authorKyle J. McKay <mackyle@gmail.com>
Wed, 20 Dec 2017 22:57:34 +0000 (20 14:57 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Wed, 20 Dec 2017 22:57:34 +0000 (20 14:57 -0800)
tree022da73b906e827ffc09acb790c9ebfbc406b616
parent1e200d59115462b0de60bd0ae2f7cd1668a7ef34
Project.pm: decline to set up cross device alternates

If the objects directory to be included in the alternates file has
a different device number than the project's own objects directory
decline to set up any alternates for the project.

Garbage collection would not work properly in such a case.

Girocco itself would never cause this situation to occur, but an
administrator could.  Should this situation arise, a newly created
fork whose objects live on a different device from its parent
project will not get the "implicit clone" that a same-device fork
does.  Too bad.  That's much safer from a gc perspective than
writing out a cross-device alternates entry.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
Girocco/Project.pm