mar-file-system / marfs

MarFS provides a scalable near-POSIX file system by using one or more POSIX file systems as a scalable metadata component and one or more data stores (object, file, etc) as a scalable data component.
Other
96 stars 27 forks source link

do something better with $PA2X/parse-inc/config-structs.h #189

Closed jti-lanl closed 7 years ago

jti-lanl commented 7 years ago

PA2X opens "./parse-inc/config-struct.h" at run-time. Our solution to this is that at build-time we currently create a symlink to that file, in the MarFS source tree, and then at run-time we chdir() to this known spot, so the relative path in the PA2X source will work.

This was never meant to be more than a work-around. It will cause trouble for anyone running marfs on a system where marfs was never built. Now that we have autotools, the better solution is probably to move this file into the build-directory, and tweak the chdir() to go there, instead.

jti-lanl commented 7 years ago

Fixed. (https://github.com/mar-file-system/marfs/commit/ff9accbf05da8c27c91c2917ad3a64cbaa663a69)

Copy this file to the install-dir, so it can be found at run-time without the need for the PA2X source-tree. This does mean that the path to the install-dir at build-time must match the path at run-time.