[lustre-discuss] How to do Lustre settings for a file from C++ code

Dilger, Andreas andreas.dilger at intel.com
Mon Feb 22 11:28:51 PST 2016

On Mon, 2016-02-22 at 13:36 +0000, Prakrati.Agrawal at shell.com wrote:
> Hi,
> I am writing multiple files to Lustre file system of different sizes.
> I want to change my stripe size and stripe count from the C++ code. I
> am using HDF5 to create file and hyperslabs and write in it. Is there
> any way to do it?

There is a library "liblustreapi" that has C function interfaces for
creating files with specific stripe parameters - llapi_file_open() is the
most basic interface that allows open/create of a file and setting the
stripe count, stripe size, and starting OST index.  A more complete
interface is llapi_file_open_param() that lets the application specify
more parameters for the layout.

Cheers, Andreas
Andreas Dilger

Lustre Principal Architect
Intel High Performance Data Division

More information about the lustre-discuss mailing list