KMR
Classes | Functions | Variables
kmrfefs.h File Reference

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...
 

Detailed Description

Lustre File System (or Fujitsu FEFS) Support.

Definition in file kmrfefs.h.

Function Documentation

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".

Definition at line 82 of file kmrfefs.c.

Variable Documentation

const size_t kmr_fefs_stripe_info_size = offsetof(struct kmr_fefs_stripe, obdidx)
static

Offset to Striping OBDIDX Information.

Definition at line 28 of file kmrfefs.h.