lib/commit: Don't try to call linkat() for import on distinct devices
authorColin Walters <walters@verbum.org>
Tue, 19 Sep 2017 19:07:30 +0000 (15:07 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 21 Sep 2017 19:14:59 +0000 (19:14 +0000)
commitd75316c9072d9e10602eae4d4fe248d451fec533
tree9a081feea3d5f3ab211d7c82298e729efe2511f6
parent160864d557c02badc7e27a66484ffdf8a13b8341
lib/commit: Don't try to call linkat() for import on distinct devices

While opening a repo we've recorded the device/inode for a while; use it to
avoid calling `linkat()` during object import if we know it's going to fail.

Closes: #1193
Approved by: jlebon
src/libostree/ostree-repo-commit.c