-.TH llapi_file_get_stripe 3 "2009 Jul 22" Lustre liblustreapi
+.TH lustreapi 3 "2009 Jul 22" The Lustre user application interface library
.SH NAME
llapi_file_get_stripe \- get striping information for a file or a directory on a Lustre filesystem
.SH SYNOPSIS
.B #include <sys/types.h>
.B #include <sys/stat.h>
.B #include <fcntl.h>
-.B #include <liblustre.h>
-.B #include <lustre/lustre_idl.h>
-.B #include <lustre/liblustreapi.h>
-.B #include <lustre/lustre_user.h>
+.B #include <lustre/lustreapi.h>
.sp
.BI "int llapi_file_get_stripe(const char *"path ", void *"lum );
.sp
__u32 lmm_magic;
__u32 lmm_pattern;
__u64 lmm_object_id;
- __u64 lmm_object_gr;
+ __u64 lmm_object_seq;
__u32 lmm_stripe_size;
__u16 lmm_stripe_count;
__u16 lmm_stripe_offset;
__u32 lmm_magic;
__u32 lmm_pattern;
__u64 lmm_object_id;
- __u64 lmm_object_gr;
+ __u64 lmm_object_seq;
__u32 lmm_stripe_size;
__u16 lmm_stripe_count;
__u16 lmm_stripe_offset;
.nf
struct lov_user_ost_data_v1 {
__u64 l_object_id;
- __u64 l_object_gr;
+ __u64 l_object_seq;
__u32 l_ost_gen;
__u32 l_ost_idx;
} __attribute__((packed));
.I l_object_id
holds the OST object id.
.TP 20
-.I l_object_gr
+.I l_object_seq
holds the OST object group.
.TP 20
.I l_ost_gen
.SH "EXAMPLE"
.nf
#include <sys/vfs.h>
-#include <liblustre.h>
-#include <lnet/lnetctl.h>
-#include <obd.h>
-#include <lustre_lib.h>
-#include <lustre/liblustreapi.h>
-#include <obd_lov.h>
+#include <lustre/lustreapi.h>
static inline int maxint(int a, int b)
{
}
.fi
.SH "SEE ALSO"
-.BR lustre (7)
+.BR lustre (7),
+.BR lustreapi (7)