Veritas™ File System 5.0.1 Programmer's Reference Guide
Required libraries and header files
The VRTSfssdk package is installed in the /opt directory. The associated libraries
and header files are installed in the following locations:
■ /opt/VRTSfssdk/5.0/lib/libvxfsutil.a
■ /opt/VRTSfssdk/5.0/include/vxfsutil.h
■ /opt/VRTSfssdk/5.0/include/sys/fs/fcl.h
■ /opt/VRTSfssdk/5.0/include/sys/fs/vx_ioctl.h
There are also symlinks to these files from the standard Veritas paths:
/opt/VRTS/lib and /opt/VRTS/include. The standard paths are the default paths
in the latest releases of VxFS and the VxFS SDK.
Compiling environment
The SDK package installs sample programs with compiled binaries.
The requirements for running the sample programs are as follows:
■ A target system with the appropriate version of VRTSvxfs installed
■ Root permission, which some programs require
■ A mounted VxFS 4.x/5.0 file system. Some may require a file system that is
mounted on a Veritas Volume Set.
Note: Some programs may require special volume configurations (volume sets).
In addition, some programs require a file system to be mounted on a volume set.
Recompiling with a different compiler
The required tools for recompiling the src or libsrc directory are as follows:
To recompile the src and libsrc directories
1
Edit the make.env file and modify it with the path to your compiler.
2
After writing the application, compile it as follows:
# gcc -I /opt/VRTS/include -L /opt/VRTS/lib -ldl -o MyApp \
MyApp.c libvxfsutil.a
Veritas File System software developer’s kit
Required libraries and header files
14