Lines Matching refs:lcbdata

2263  * Add a transaction entry to lcbdata->sc_trans for this property_t.  Uses
2264 * sc_handle, sc_trans, and sc_flags (SCI_NOENABLED) in lcbdata. On success,
2266 * lcbdata->sc_err to
2277 scf_callback_t *lcbdata = pvt;
2279 scf_transaction_t *trans = lcbdata->sc_trans;
2284 if ((lcbdata->sc_flags & SCI_NOENABLED ||
2285 lcbdata->sc_flags & SCI_DELAYENABLE) &&
2287 lcbdata->sc_enable = p;
2291 entr = scf_entry_create(lcbdata->sc_handle);
2295 return (stash_scferror(lcbdata));
2311 return (stash_scferror(lcbdata));
2319 return (stash_scferror(lcbdata));
2334 return (stash_scferror(lcbdata));
2340 return (stash_scferror(lcbdata));
2361 return (stash_scferror(lcbdata));
2391 return (stash_scferror(lcbdata));
2406 * sc_source_fmri, and sc_target_fmri in lcbdata, and uses imp_pg and imp_tx.
2408 * lcbdata->sc_err to
2434 scf_callback_t *lcbdata = pvt;
2435 void *ent = lcbdata->sc_parent;
2436 int issvc = lcbdata->sc_service;
2444 if ((lcbdata->sc_flags & SCI_OP_APPLY) == SCI_OP_APPLY &&
2451 if (!issvc && (lcbdata->sc_flags & SCI_GENERALLAST) &&
2453 lcbdata->sc_general = p;
2471 return (stash_scferror(lcbdata));
2474 if (lcbdata->sc_flags & SCI_FORCE)
2476 return (stash_scferror(lcbdata));
2480 lcbdata->sc_source_fmri,
2482 return (stash_scferror(lcbdata));
2486 lcbdata->sc_target_fmri);
2487 return (stash_scferror(lcbdata));
2500 return (stash_scferror(lcbdata));
2504 lcbdata->sc_source_fmri,
2506 return (stash_scferror(lcbdata));
2509 warn(emsg_pg_deleted, lcbdata->sc_target_fmri,
2511 lcbdata->sc_err = EBUSY;
2522 if (lcbdata->sc_flags & SCI_KEEP)
2529 warn(emsg_pg_deleted, lcbdata->sc_target_fmri,
2531 lcbdata->sc_err = EBUSY;
2536 lcbdata->sc_target_fmri);
2537 return (stash_scferror(lcbdata));
2542 return (stash_scferror(lcbdata));
2561 cbdata.sc_handle = lcbdata->sc_handle;
2563 cbdata.sc_flags = lcbdata->sc_flags;
2572 return (stash_scferror(lcbdata));
2575 warn(pg_changed, lcbdata->sc_target_fmri,
2577 lcbdata->sc_err = EBUSY;
2582 lcbdata->sc_target_fmri);
2583 return (stash_scferror(lcbdata));
2600 lcbdata->sc_err = cbdata.sc_err;
2602 warn(pg_changed, lcbdata->sc_target_fmri,
2604 lcbdata->sc_err = EBUSY;
2609 if ((lcbdata->sc_flags & SCI_DELAYENABLE) && cbdata.sc_enable) {
2625 lcbdata->sc_err = r;
2629 lcbdata->sc_err = r;
2635 lcbdata->sc_err = r;
2642 lcbdata->sc_err = r;
2664 warn(pg_changed, lcbdata->sc_target_fmri, p->sc_pgroup_name);
2665 lcbdata->sc_err = EBUSY;
2675 r = stash_scferror(lcbdata);
2679 warn(emsg_pg_deleted, lcbdata->sc_target_fmri,
2681 lcbdata->sc_err = EBUSY;
2687 lcbdata->sc_target_fmri);
2688 r = stash_scferror(lcbdata);
3234 * entity. If lcbdata->sc_trans is set, assume it's been started on the
3236 * dependent. Uses sc_handle, sc_trans, and sc_fmri in lcbdata.
3239 * lcbdata->sc_err to
3266 scf_callback_t *lcbdata = pvt;
3279 scfe = fmri_to_entity(lcbdata->sc_handle, pgrp->sc_pgroup_fmri,
3286 return (stash_scferror_err(lcbdata, scfe));
3291 return (stash_scferror_err(lcbdata, scfe));
3297 return (stash_scferror_err(lcbdata, scfe));
3300 scfe = create_entity(lcbdata->sc_handle, pgrp->sc_pgroup_fmri,
3309 return (stash_scferror_err(lcbdata, scfe));
3315 lcbdata->sc_err = EINVAL;
3322 return (stash_scferror_err(lcbdata, scfe));
3335 if (lcbdata->sc_trans != NULL) {
3336 e = scf_entry_create(lcbdata->sc_handle);
3342 return (stash_scferror(lcbdata));
3345 if (scf_transaction_property_new(lcbdata->sc_trans, e,
3359 return (stash_scferror(lcbdata));
3365 lcbdata->sc_err = EALREADY;
3377 val = scf_value_create(lcbdata->sc_handle);
3383 return (stash_scferror(lcbdata));
3397 dependent_cbdata.sc_handle = lcbdata->sc_handle;
3398 dependent_cbdata.sc_flags = lcbdata->sc_flags;
3399 dependent_cbdata.sc_source_fmri = lcbdata->sc_source_fmri;
3416 lcbdata->sc_err = EBUSY;
3426 lcbdata->sc_err = dependent_cbdata.sc_err;
6135 * lcbdata->sc_err to
6175 scf_callback_t *lcbdata = pvt;
6176 scf_service_t *rsvc = lcbdata->sc_parent;
6179 int flags = lcbdata->sc_flags;
6202 return (stash_scferror(lcbdata));
6208 lcbdata->sc_err = EBUSY;
6214 lcbdata->sc_err = EBUSY;
6220 return (stash_scferror(lcbdata));
6226 return (stash_scferror(lcbdata));
6242 lcbdata->sc_flags | SCI_NOENABLED);
6249 lcbdata->sc_err = EBUSY;
6255 lcbdata->sc_err = EBUSY;
6269 lcbdata->sc_err = r;
6282 ctx.sc_handle = lcbdata->sc_handle;
6298 lcbdata->sc_err = EBUSY;
6303 lcbdata->sc_err = EBUSY;
6307 lcbdata->sc_err = ctx.sc_err;
6320 r = stash_scferror(lcbdata);
6325 lcbdata->sc_err = EBUSY;
6333 r = stash_scferror(lcbdata);
6338 lcbdata->sc_err = -1;
6349 if (lcbdata->sc_flags & SCI_FRESH)
6359 lcbdata->sc_err = EBUSY;
6402 lcbdata->sc_err = EBUSY;
6408 lcbdata->sc_err = EBADF;
6422 lcbdata->sc_err = EBUSY;
6455 lcbdata->sc_err = EBUSY;
6461 lcbdata->sc_err = EBADF;
6478 lcbdata->sc_err = EBUSY;
6494 lcbdata->sc_err = r;
6530 r = stash_scferror(lcbdata);
6537 lcbdata->sc_err = EBUSY;
6545 r = stash_scferror(lcbdata);
6572 r = stash_scferror(lcbdata);
6579 lcbdata->sc_err = EBUSY;
6587 r = stash_scferror(lcbdata);
6592 lcbdata->sc_err = -1;
6623 lcbdata->sc_err = EBUSY;
6630 lcbdata->sc_err = EBUSY;
6635 lcbdata->sc_err = r;
6654 lcbdata->sc_err = ctx.sc_err;
6674 lcbdata->sc_err = r;
6682 lcbdata->sc_err = r;
6688 lcbdata->sc_err = r;
6698 if (lcbdata->sc_flags & SCI_NOSNAP)
6711 r = stash_scferror(lcbdata);
6718 r = stash_scferror(lcbdata);
6754 lcbdata->sc_err = ECONNABORTED;
6975 * sets lcbdata->sc_err to
7036 scf_callback_t *lcbdata = pvt;
7037 scf_scope_t *scope = lcbdata->sc_parent;
7064 return (stash_scferror(lcbdata));
7069 return (stash_scferror(lcbdata));
7095 lcbdata->sc_err = EINVAL;
7106 return (stash_scferror(lcbdata));
7117 return (stash_scferror(lcbdata));
7122 return (stash_scferror(lcbdata));
7137 cbdata.sc_handle = lcbdata->sc_handle;
7149 lcbdata->sc_err = cbdata.sc_err;
7156 lcbdata->sc_err = EBUSY;
7161 lcbdata->sc_err = EBUSY;
7174 lcbdata->sc_err = cbdata.sc_err;
7181 lcbdata->sc_err = EBUSY;
7186 lcbdata->sc_err = EBUSY;
7218 r = stash_scferror(lcbdata);
7225 lcbdata->sc_err = EBUSY;
7245 cbdata.sc_handle = lcbdata->sc_handle;
7248 cbdata.sc_flags = lcbdata->sc_flags;
7257 lcbdata->sc_err = cbdata.sc_err;
7264 lcbdata->sc_err = EBUSY;
7270 lcbdata->sc_err = EBUSY;
7290 lcbdata->sc_err = cbdata.sc_err;
7324 lcbdata->sc_err = EBUSY;
7344 lcbdata->sc_err = EBUSY;
7396 lcbdata->sc_err = r;
7401 lcbdata->sc_err = r;
7438 r = stash_scferror(lcbdata);
7445 lcbdata->sc_err = EBUSY;
7453 r = stash_scferror(lcbdata);
7460 r = stash_scferror(lcbdata);
7482 lcbdata->sc_err = EBUSY;
7491 lcbdata->sc_err = r;
7520 lcbdata->sc_err = EBUSY;
7538 lcbdata->sc_err = EBUSY;
7608 lcbdata->sc_err = cbdata.sc_err;
7615 lcbdata->sc_err = EBUSY;
7634 lcbdata->sc_err = cbdata.sc_err;
7731 lcbdata->sc_err = EBADF;
7779 lcbdata->sc_err = EBADF;
7807 lcbdata->sc_err = EBUSY;
7815 lcbdata->sc_err = EBUSY;
7819 lcbdata->sc_err = r;
7830 cbdata.sc_handle = lcbdata->sc_handle;
7833 cbdata.sc_flags = lcbdata->sc_flags | (fresh ? SCI_FRESH : 0);
7841 lcbdata->sc_err = cbdata.sc_err;
7879 lcbdata->sc_err = ECONNABORTED;