X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fliblustre%2Fsuper.c;h=dec96c3d95a8d91acf2161b58e12aeb0692718ca;hb=265debce462205947da4f70a958ae10b3bd73859;hp=26a97208c693eea58277b82ada062aa37ca4fabe;hpb=fbb7ead129258897f5a5d5c9ce28d31fbbe5bca2;p=fs%2Flustre-release.git diff --git a/lustre/liblustre/super.c b/lustre/liblustre/super.c index 26a9720..dec96c3 100644 --- a/lustre/liblustre/super.c +++ b/lustre/liblustre/super.c @@ -91,7 +91,8 @@ static void llu_fsop_gone(struct filesys *fs) { struct llu_sb_info *sbi = (struct llu_sb_info *)fs->fs_private; struct obd_device *obd = class_exp2obd(sbi->ll_md_exp); - struct lustre_cfg lcfg; + struct lustre_cfg_bufs bufs; + struct lustre_cfg *lcfg; int next = 0; ENTRY; @@ -102,15 +103,17 @@ static void llu_fsop_gone(struct filesys *fs) while ((obd = class_devices_in_group(&sbi->ll_sb_uuid, &next)) != NULL) { int err; - - LCFG_INIT(lcfg, LCFG_CLEANUP, obd->obd_name); + + lustre_cfg_bufs_reset(&bufs, obd->obd_name); + lcfg = lustre_cfg_new(LCFG_CLEANUP, &bufs); err = class_process_config(&lcfg); if (err) { CERROR("cleanup failed: %s\n", obd->obd_name); } - - LCFG_INIT(lcfg, LCFG_DETACH, obd->obd_name); + + lcfg->lcfg_command = LCFG_DETACH; err = class_process_config(&lcfg); + lustre_cfg_free(lcfg); if (err) { CERROR("detach failed: %s\n", obd->obd_name); } @@ -1488,7 +1491,7 @@ llu_fsswop_mount(const char *source, GOTO(out_free, err = -EINVAL); #endif /* setup mdc */ - err = obd_connect(&lmv_conn, obd, &sbi->ll_sb_uuid, 0); + err = obd_connect(&lmv_conn, obd, &sbi->ll_sb_uuid, NULL, 0); if (err) { CERROR("cannot connect to %s: rc = %d\n", lmv, err); GOTO(out_free, err); @@ -1512,7 +1515,7 @@ llu_fsswop_mount(const char *source, obd_set_info(obd->obd_self_export, strlen("async"), "async", sizeof(async), &async); - err = obd_connect(&lov_conn, obd, &sbi->ll_sb_uuid, 0); + err = obd_connect(&lov_conn, obd, &sbi->ll_sb_uuid, NULL, 0); if (err) { CERROR("cannot connect to %s: rc = %d\n", lov, err); GOTO(out_lmv, err);