diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2020-06-30 16:35:08 -0400 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2020-06-30 16:35:08 -0400 |
commit | 09833126f33e0222fcd1244b79c90f151007ac97 (patch) | |
tree | d203c00382892a81bacedd02f458ff938cf0247f /src/libstore/build.cc | |
parent | bcf8582091ac578a8b167f0eeb33d3db2f7b5f98 (diff) | |
parent | ee1582494e458bf83535986b2a5bca32687420c5 (diff) |
Merge remote-tracking branch 'origin/master' into substitute-other-storedir
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r-- | src/libstore/build.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 697c3fcff..95280ef1e 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -1950,8 +1950,11 @@ void linkOrCopy(const Path & from, const Path & to) /* Hard-linking fails if we exceed the maximum link count on a file (e.g. 32000 of ext3), which is quite possible after a 'nix-store --optimise'. FIXME: actually, why don't we just - bind-mount in this case? */ - if (errno != EMLINK) + bind-mount in this case? + + It can also fail with EPERM in BeegFS v7 and earlier versions + which don't allow hard-links to other directories */ + if (errno != EMLINK && errno != EPERM) throw SysError("linking '%s' to '%s'", to, from); copyPath(from, to); } |