Whamcloud - gitweb
land 0.5.20.3 b_devel onto HEAD (b_devel will remain)
[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 #define OBD_LOV_DEVICENAME "lov"
9
10 void lov_unpackdesc(struct lov_desc *ld);
11 void lov_packdesc(struct lov_desc *ld);
12
13 static inline int lov_stripe_md_size(int stripes)
14 {
15         return sizeof(struct lov_stripe_md) + stripes*sizeof(struct lov_oinfo);
16 }
17
18 static inline int lov_mds_md_size(int stripes)
19 {
20         return sizeof(struct lov_mds_md) + stripes*sizeof(struct lov_object_id);
21 }
22
23 #define IOC_LOV_TYPE                   'g'
24 #define IOC_LOV_MIN_NR                 50
25 #define IOC_LOV_SET_OSC_ACTIVE         _IOWR('g', 50, long)
26 #define IOC_LOV_MAX_NR                 50
27
28 #endif