...
The script xrdprel should be used to run a command using the xrootd preload library. The script sets the proper environment variables (LD_LIBRARY_PATH, LD_PRELOAD) and then executes the provided command. The LD_PRELOAD variable instructs the loader to load an additional library in this case the xrootd preload library. Certain function calls (e.g.: open, close, read, fopen, fclose, fread, ...) are called from the preload library which if
a file is a xrootd file will subsequently use the xrootd tools to access the file. If a file is not and xrootd file the call will be redirected to the corresponding system call.
The usage is:
Code Block |
---|
xrdprel [-g] [-h] _command_ _args_
_command_ and _args_ are the user command and and its arguments
-h: prints a help
-g: use a virtual mountpoint, which means file names starting with /glast/ are assumed to be
xrootd files.
|
...
/afs/slac.stanford.edu/g/glast/applications/xrootd/<REL>PROD/bin
where <REL> is either PROD, DEV or TEST. Currently DEV and TEST have the most functional preload library.
Warning | ||
---|---|---|
| ||
For reading fits files use DEV or TEST |
...
xrdprel ls -l
Would run ls against a file in xrootd.
...