Changeset 4224ef7 in mainline for uspace/srv/sysman


Ignore:
Timestamp:
2019-08-06T18:18:37Z (7 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
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)
Message:

sysman: Add VFS FS server autostart

  • VFS autostart instrumentation removes explicit dependency on FS servers.
  • Compositor service properly named, it's now resolved as implicit dependency.

Conflicts:

boot/Makefile.common
uspace/lib/gui/window.c
uspace/srv/locsrv/locsrv.c
uspace/srv/vfs/vfs.c
uspace/srv/vfs/vfs_ops.c

Location:
uspace/srv/sysman
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/sysman/connection_broker.c

    rdd5c623 r4224ef7  
    3737        sysman_log(LVL_DEBUG2, "%s", __func__);
    3838        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         */
    4045}
    4146
  • uspace/srv/sysman/sysman.c

    rdd5c623 r4224ef7  
    160160/** Create and queue job for unit
    161161 *
    162  * @param[in]  callback  callback must explicitly delete reference to job
     162 * @param[in]  callback  (optional) callback must explicitly delete reference
     163 *                       to job
    163164 */
    164165int sysman_queue_job(unit_t *unit, unit_state_t target_state,
     
    170171        }
    171172
    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        }
    174177
    175178        job_add_ref(job);
  • uspace/srv/sysman/units/unit_mnt.c

    rdd5c623 r4224ef7  
    151151{
    152152        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)",
    154154            __func__,
    155155            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
    157158        int rc = mount(mnt_data->type, mnt_data->mountpoint, mnt_data->device,
    158159            mnt_data->options ? mnt_data->options : "",
  • uspace/srv/sysman/units/unit_svc.c

    rdd5c623 r4224ef7  
    8787        int rc = task_spawnv(NULL, NULL, u_svc->exec_start.path,
    8888            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
    9090        if (rc != EOK) {
    9191                unit->state = STATE_FAILED;
Note: See TracChangeset for help on using the changeset viewer.