Whamcloud - gitweb
Large commit which implements more "intelligent" offsets for stripe
[fs/lustre-release.git] / lustre / include / linux / lustre_idl.h
index 17d8c44..557f183 100644 (file)
@@ -193,14 +193,15 @@ struct lov_object_id { /* per-child structure */
 #define LOV_MAGIC  0x0BD00BD0
 
 struct lov_mds_md {
-        __u32 lmd_magic;
-        __u32 lmd_easize;          /* packed size of extended */
-        __u64 lmd_object_id;       /* lov object id */
-        __u64 lmd_stripe_offset;   /* offset of the stripe */ 
-        __u64 lmd_stripe_size;     /* size of the stripe */
-        __u32 lmd_stripe_count;    /* how many objects are being striped */
-        __u32 lmd_stripe_pattern;  /* per-lov object stripe pattern */
-        struct lov_object_id lmd_objects[0];
+        __u32 lmm_magic;
+        __u32 lmm_easize;          /* packed size of extended */
+        __u64 lmm_object_id;       /* lov object id */
+        __u32 lmm_stripe_offset;   /* starting stripe offset in lmd_objects */
+        __u32 lmm_stripe_count;    /* number of stipes in use for this object */
+        __u64 lmm_stripe_size;     /* size of the stripe */
+        __u32 lmm_ost_count;       /* how many OSTs are in this LOV */
+        __u32 lmm_stripe_pattern;  /* per-lov object stripe pattern */
+        struct lov_object_id lmm_objects[0];
 };
 
 #define OBD_MD_FLALL    (0xffffffff)
@@ -405,21 +406,21 @@ struct mds_rec_rename {
 };
 
 
-/* 
+/*
  *  LOV data structures
  */
 
 #define LOV_RAID0   0
 #define LOV_RAIDRR  1
 
-struct lov_desc { 
+struct lov_desc {
         __u32 ld_tgt_count;                /* how many OBD's */
         __u32 ld_default_stripe_count;     /* how many objects are used */
         __u64 ld_default_stripe_size;      /* in bytes */
         __u64 ld_default_stripe_offset;    /* in bytes */
         __u32 ld_pattern;                  /* RAID 0,1 etc */
         uuid_t ld_uuid;
-}; 
+};
 
 /*
  *   LDLM requests: