Whamcloud - gitweb
merge b_devel into HEAD, which will become 0.7.3
[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 struct lov_brw_async_args {
11         struct lov_stripe_md  *aa_lsm;
12         struct obdo           *aa_obdos;
13         struct obdo           *aa_oa;
14         struct brw_page       *aa_ioarr;
15         obd_count              aa_oa_bufs;
16 };
17
18 struct lov_getattr_async_args {
19         struct lov_stripe_md  *aa_lsm;
20         struct obdo           *aa_oa;
21         struct obdo           *aa_obdos;
22 };
23
24 static inline int lov_stripe_md_size(int stripes)
25 {
26         return sizeof(struct lov_stripe_md) + stripes*sizeof(struct lov_oinfo);
27 }
28
29 static inline int lov_mds_md_size(int stripes)
30 {
31         return sizeof(struct lov_mds_md) + stripes*sizeof(struct lov_object_id);
32 }
33
34 #define IOC_LOV_TYPE                   'g'
35 #define IOC_LOV_MIN_NR                 50
36 #define IOC_LOV_SET_OSC_ACTIVE         _IOWR('g', 50, long)
37 #define IOC_LOV_MAX_NR                 50
38
39 #endif