[lustre-discuss] How to do Lustre settings for a file from C++ code
richard.henwood at intel.com
Mon Feb 22 11:31:35 PST 2016
On Mon, 2016-02-22 at 19:28 +0000, Dilger, Andreas wrote:
> 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
> most basic interface that allows open/create of a file and setting
> stripe count, stripe size, and starting OST index. A more complete
> interface is llapi_file_open_param() that lets the application
> more parameters for the layout.
FYI: an obligatory Operations Manual reference (including sample code
Richard.Henwood at intel.com
Intel High Performance Data Division
More information about the lustre-discuss