Whamcloud - gitweb
- landed b_hd_cray_merge3
[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 static inline int lov_stripe_md_size(int stripes)
11 {
12         return sizeof(struct lov_stripe_md) + stripes*sizeof(struct lov_oinfo);
13 }
14
15 static inline int lov_mds_md_v0_size(int stripes)
16 {
17         return sizeof(struct lov_mds_md_v0) +
18                 stripes * sizeof(struct lov_ost_data_v0);
19 }
20
21 #define lov_mds_md_size(stripes) lov_mds_md_v1_size(stripes)
22 static inline int lov_mds_md_v1_size(int stripes)
23 {
24         return sizeof(struct lov_mds_md_v1) +
25                 stripes * sizeof(struct lov_ost_data_v1);
26 }
27
28 #define IOC_LOV_TYPE                   'g'
29 #define IOC_LOV_MIN_NR                 50
30 #define IOC_LOV_SET_OSC_ACTIVE         _IOWR('g', 50, long)
31 #define IOC_LOV_MAX_NR                 50
32
33 #endif