LCFG_LOV_ADD_INA = 0x00ce013,
LCFG_ADD_MDC = 0x00cf014,
LCFG_DEL_MDC = 0x00cf015,
- LCFG_LMV_ADD_OBD = 0x00cf016,
- LCFG_LMV_DEL_OBD = 0x00cf017,
};
struct lustre_cfg_bufs {
__u32 ld_active_tgt_count; /* how many active */
struct obd_uuid ld_uuid;
};
-struct cmm_desc {
- __u32 ld_tgt_count; /* how many MDS's */
- __u32 ld_active_tgt_count; /* how many active */
- struct obd_uuid ld_uuid;
-};
extern void lustre_swab_lmv_desc (struct lmv_desc *ld);
-extern void lustre_swab_cmm_desc (struct cmm_desc *ld);
/*end adding MDT by huanghua@clusterfs.com*/
struct md_fld {
__swab32s (&ld->ld_active_tgt_count);
/* uuid endian insensitive */
}
-void lustre_swab_cmm_desc (struct cmm_desc *ld)
-{
- __swab32s (&ld->ld_tgt_count);
- __swab32s (&ld->ld_active_tgt_count);
- /* uuid endian insensitive */
-}
/*end adding MDT by huanghua@clusterfs.com*/
void lustre_swab_md_fld (struct md_fld *mf)
{
lmvdesc = (struct lmv_desc*)(lustre_cfg_string(lcfg, 1));
printf("count=%d ", lmvdesc->ld_tgt_count);
printf("atcive_count=%d", lmvdesc->ld_active_tgt_count);
- } else if (!strcmp(type,"cmm")){
- struct cmm_desc *cmmdesc;
- printf("cmm_setup ");
- printf("0:%s ", name);
- printf("1:(struct cmm_desc)\n");
- cmmdesc = (struct cmm_desc*)(lustre_cfg_string(lcfg, 1));
- printf("count=%d ", cmmdesc->ld_tgt_count);
- printf("atcive_count=%d", cmmdesc->ld_active_tgt_count);
} else {
printf("setup ");
print_1_cfg(lcfg);