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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

jti-lanl opened this issue · comments

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.

Fixed. (ff9accb)

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.