Whamcloud - gitweb
Move the on-wire stucts/definitions into lustre_idl.h, for the CVS head.
[fs/lustre-release.git] / lustre / include / linux / obd_lov.h
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  */
4
5 #ifndef _OBD_LOV_H__
6 #define _OBD_LOV_H__
7
8 #ifdef __KERNEL__
9
10 #define OBD_LOV_DEVICENAME "lov"
11
12 void lov_unpackdesc(struct lov_desc *ld);
13 void lov_packdesc(struct lov_desc *ld);
14
15 struct lov_object_id { /* per-child structure */
16         __u64 l_object_id;
17         __u32 l_device_id;
18 };
19
20 struct lov_md {
21         __u64 lmd_object_id;     /* lov object id */
22         __u64 lmd_stripe_count;
23         __u32 lmd_stripe_size;
24         __u32 lmd_stripe_pattern;  /* per-lov object stripe pattern */
25         struct lov_object_id lmd_objects[0];
26 };
27
28 #endif
29 #endif