KMR
|
Lustre File System (or Fujitsu FEFS) Support. More...
#include <stddef.h>
Go to the source code of this file.
Classes | |
struct | kmr_fefs_stripe |
Lustre Striping Information with OBDIDX. More... | |
struct | kmr_fefs_stripe_info |
Lustre Striping Information. More... | |
Functions | |
int | kmr_fefs_get_stripe (const char *dir, const char *file, struct kmr_fefs_stripe *stripe, int *err, _Bool debug_and_dump) |
Gets the OBDIDX information on the file or directory. More... | |
Variables | |
static const size_t | kmr_fefs_stripe_info_size = offsetof(struct kmr_fefs_stripe, obdidx) |
Offset to Striping OBDIDX Information. More... | |
Lustre File System (or Fujitsu FEFS) Support.
Definition in file kmrfefs.h.
int kmr_fefs_get_stripe | ( | const char * | dir, |
const char * | file, | ||
struct kmr_fefs_stripe * | stripe, | ||
int * | err, | ||
_Bool | debug_and_dump | ||
) |
Gets the OBDIDX information on the file or directory.
FILE be null for directory. It fills STRIPE, which contains stripe size, count, offset, and an obdidx array. It returns non-zero on error: 1 for unsupported OS, 2 malloc failure, 3 open failure, 4 ioctl failure (not Lustre FS), 5 bad magic, 6 bad version (V3), and 7 bad pattern. Note the structure and the _IOWR definitions are changed to match the arguments of the Fujitsu FEFS. See the source "cb_getstripe()", near "ioctl(_,LL_IOC_LOV_GETSTRIPE,...)" in "liblustreapi.c".
|
static |