1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
8 static inline int lov_stripe_md_size(int stripes)
10 return sizeof(struct lov_stripe_md) + stripes*sizeof(struct lov_oinfo);
13 static inline int lov_mds_md_v0_size(int stripes)
15 return sizeof(struct lov_mds_md_v0) +
16 stripes * sizeof(struct lov_ost_data_v0);
19 #define lov_mds_md_size(stripes) lov_mds_md_v1_size(stripes)
20 static inline int lov_mds_md_v1_size(int stripes)
22 return sizeof(struct lov_mds_md_v1) +
23 stripes * sizeof(struct lov_ost_data_v1);
26 #define IOC_LOV_TYPE 'g'
27 #define IOC_LOV_MIN_NR 50
28 #define IOC_LOV_SET_OSC_ACTIVE _IOWR('g', 50, long)
29 #define IOC_LOV_MAX_NR 50