Changeset 4224ef7 in mainline for uspace/srv/sysman
- Timestamp:
- 2019-08-06T18:18:37Z (7 years ago)
- Children:
- e55741e
- Parents:
- dd5c623
- git-author:
- Michal Koutný <xm.koutny+hos@…> (2015-05-11 16:50:40)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-06 18:18:37)
- Location:
- uspace/srv/sysman
- Files:
-
- 4 edited
-
connection_broker.c (modified) (1 diff)
-
sysman.c (modified) (2 diffs)
-
units/unit_mnt.c (modified) (1 diff)
-
units/unit_svc.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/sysman/connection_broker.c
rdd5c623 r4224ef7 37 37 sysman_log(LVL_DEBUG2, "%s", __func__); 38 38 async_answer_0(iid, EOK); 39 // TODO implement 39 /* TODO implement 40 * What exactly? Similar behavior that has locsrv with servers, 41 * so that subsequent calls can be assigned to broker. Still that 42 * makes sense only when brokers will somehow scope unit/exposee 43 * names. Why I wanted this registration? 44 */ 40 45 } 41 46 -
uspace/srv/sysman/sysman.c
rdd5c623 r4224ef7 160 160 /** Create and queue job for unit 161 161 * 162 * @param[in] callback callback must explicitly delete reference to job 162 * @param[in] callback (optional) callback must explicitly delete reference 163 * to job 163 164 */ 164 165 int sysman_queue_job(unit_t *unit, unit_state_t target_state, … … 170 171 } 171 172 172 job_add_ref(job); 173 sysman_object_observer(job, callback, callback_arg); 173 if (callback != NULL) { 174 job_add_ref(job); 175 sysman_object_observer(job, callback, callback_arg); 176 } 174 177 175 178 job_add_ref(job); -
uspace/srv/sysman/units/unit_mnt.c
rdd5c623 r4224ef7 151 151 { 152 152 mount_data_t *mnt_data = arg; 153 /*sysman_log(LVL_DEBUG2, "%s(%p, %p, %p, %p, %x, %u)",153 sysman_log(LVL_DEBUG2, "%s(%p, %p, %p, %p, %x, %u)", 154 154 __func__, 155 155 mnt_data->type, mnt_data->mountpoint, mnt_data->device, mnt_data->options, 156 mnt_data->flags, mnt_data->instance);*/ 156 mnt_data->flags, mnt_data->instance); 157 157 158 int rc = mount(mnt_data->type, mnt_data->mountpoint, mnt_data->device, 158 159 mnt_data->options ? mnt_data->options : "", -
uspace/srv/sysman/units/unit_svc.c
rdd5c623 r4224ef7 87 87 int rc = task_spawnv(NULL, NULL, u_svc->exec_start.path, 88 88 u_svc->exec_start.argv); 89 sysman_log(LVL_DEBUG2, "task_spawn(%s, %s)", u_svc->exec_start.path, u_svc->exec_start.argv[0]); 89 90 90 if (rc != EOK) { 91 91 unit->state = STATE_FAILED;
Note:
See TracChangeset
for help on using the changeset viewer.
