1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
8 #define OBD_LOV_DEVICENAME "lov"
10 struct lov_brw_async_args {
11 struct lov_stripe_md *aa_lsm;
12 struct obdo *aa_obdos;
14 struct brw_page *aa_ioarr;
18 struct lov_getattr_async_args {
19 struct lov_stripe_md *aa_lsm;
21 struct obdo *aa_obdos;
22 struct lov_obd *aa_lov;
25 static inline int lov_stripe_md_size(int stripes)
27 return sizeof(struct lov_stripe_md) + stripes*sizeof(struct lov_oinfo);
30 static inline int lov_mds_md_v0_size(int stripes)
32 return sizeof(struct lov_mds_md_v0) +
33 stripes * sizeof(struct lov_ost_data_v0);
36 #define lov_mds_md_size(stripes) lov_mds_md_v1_size(stripes)
37 static inline int lov_mds_md_v1_size(int stripes)
39 return sizeof(struct lov_mds_md_v1) +
40 stripes * sizeof(struct lov_ost_data_v1);
43 #define IOC_LOV_TYPE 'g'
44 #define IOC_LOV_MIN_NR 50
45 #define IOC_LOV_SET_OSC_ACTIVE _IOWR('g', 50, long)
46 #define IOC_LOV_MAX_NR 50