Whamcloud - gitweb
b=15625
[fs/lustre-release.git] / lustre / include / 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 static inline int lov_stripe_md_size(int stripes)
9 {
10         return sizeof(struct lov_stripe_md) + stripes*sizeof(struct lov_oinfo*);
11 }
12
13 #define lov_mds_md_size(stripes) lov_mds_md_v1_size(stripes)
14 static inline int lov_mds_md_v1_size(int stripes)
15 {
16         return sizeof(struct lov_mds_md_v1) +
17                 stripes * sizeof(struct lov_ost_data_v1);
18 }
19
20 #define IOC_LOV_TYPE                   'g'
21 #define IOC_LOV_MIN_NR                 50
22 #define IOC_LOV_SET_OSC_ACTIVE         _IOWR('g', 50, long)
23 #define IOC_LOV_MAX_NR                 50
24
25 #define QOS_DEFAULT_THRESHOLD           10 /* MB */
26 #define QOS_DEFAULT_MAXAGE              5  /* Seconds */
27
28 #endif