LLNL / UnifyFS

UnifyFS: A file system for burst buffers
Other
102 stars 31 forks source link

Add optional LD_PRELOAD library #737

Closed adammoody closed 1 year ago

adammoody commented 1 year ago

Defines a new libunifyfs_preload_gotcha.so library to intercept file system calls from shell commands.

To build this library, add the --enable-preload configure option.

To use this library at runtime, the UnifyFS server should be started as normal. Then in the client, set LD_PRELOAD to point to the library install location. For example, a bash user can set:

export LD_PRELOAD=<unifyfs_install>/lib/libunifyfs_preload_gotcha.so

One may then run shell commands to interact with UnifyFS files, e.g.,:

touch /unifyfs/file1
cp -pr /unifyfs/file1 /unifyfs/file2
ls -l /unifyfs/file1
stat /unifyfs/file1
rm /unifyfs/file1

Due to the variety and variation of I/O functions that may be called by different commands, there is no guarantee that a given invocation is supported under UnifyFS semantics. This feature is experimental, and it should be used at your own risk.

Description

Motivation and Context

How Has This Been Tested?

Types of changes

Checklist:

adammoody commented 1 year ago

Thanks @MichaelBrim and @CamStan .