Opened 9 years ago

Closed 9 years ago

#9484 closed Bugs (fixed)

b2 headers thinks AFS filesystem supports cross-directory hardlinks

Reported by: Lars Viklund <zao@…> Owned by: Vladimir Prus
Milestone: To Be Determined Component: build
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

The AFS filesystem (as in OpenAFS) has some interesting quirks. Among those is that it only allows hardlinks inside the same directory.

I suggest that the hardlink test should be augmented to test whether hardlinks between entries of different directories is supported.

'./b2 headers' output head: ====8<==== Performing configuration checks

  • symlinks supported : yes
  • hardlinks supported : yes

...found 970 targets... ...updating 435 targets... mklink-or-dir boost mklink-or-dir boost/accumulators mklink-or-dir boost/algorithm link.hardlink boost/array.hpp ln: failed to create hard link `boost/array.hpp' => `libs/array/include/boost/array.hpp': Invalid cross-device link

ln -f "libs/array/include/boost/array.hpp" "boost/array.hpp"

...failed link.hardlink boost/array.hpp... link.hardlink boost/asio.hpp ln: failed to create hard link `boost/asio.hpp' => `libs/asio/include/boost/asio.hpp': Invalid cross-device link

ln -f "libs/asio/include/boost/asio.hpp" "boost/asio.hpp"

...failed link.hardlink boost/asio.hpp... ====8<====

Change History (1)

comment:1 by Steven Watanabe, 9 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.