Whamcloud - gitweb
Replace all of the "char[37]" uses with obd_uuid_t.
[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 void lov_packmd(struct lov_mds_md *mdsmd, struct lov_stripe_md *md);
15 void lov_unpackmd(struct lov_stripe_md *md, struct lov_mds_md *mdsmd);
16
17 static inline int lov_stripe_md_size(int stripes)
18 {
19         return sizeof(struct lov_stripe_md) + stripes*sizeof(struct lov_oinfo);
20 }
21
22 static inline int lov_mds_md_size(int stripes)
23 {
24         return sizeof(struct lov_mds_md) + stripes*sizeof(struct lov_object_id);
25 }
26
27 #endif
28 #endif