Changeset af92309 in mainline for uspace/srv/sysman/main.c


Ignore:
Timestamp:
2019-08-07T09:33:04Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
9532981
Parents:
918ac9b
git-author:
Michal Koutný <xm.koutny+hos@…> (2015-11-02 22:12:18)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-07 09:33:04)
Message:

sysman: Rename configuration to repo(sitory)

It's better suited for dynamic nature of the storage.

File:
1 edited

Legend:

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

    r918ac9b raf92309  
    3737#include <str.h>
    3838
    39 #include "configuration.h"
     39#include "repo.h"
    4040#include "connection_broker.h"
    4141#include "connection_ctl.h"
     
    131131         * Add units to configuration and start the default target.
    132132         */
    133         configuration_start_update();
    134 
    135         configuration_add_unit(mnt_initrd);
    136         configuration_add_unit(cfg_init);
    137         configuration_add_unit(tgt_init);
     133        repo_begin_update();
     134
     135        repo_add_unit(mnt_initrd);
     136        repo_add_unit(cfg_init);
     137        repo_add_unit(tgt_init);
    138138
    139139        rc = dep_add_dependency(tgt_init, cfg_init);
     
    147147        }
    148148
    149         configuration_commit();
     149        repo_commit();
    150150
    151151        return EOK;
     
    158158
    159159rollback:
    160         configuration_rollback();
     160        repo_rollback();
    161161        return rc;
    162162}
     
    186186
    187187        /* Previous targets should have loaded new units */
    188         unit_t *tgt = configuration_find_unit_by_name(target_name);
     188        unit_t *tgt = repo_find_unit_by_name(target_name);
    189189        if (tgt == NULL) {
    190190                sysman_log(LVL_ERROR,
     
    210210         */
    211211        // TODO check return values and abort start
    212         configuration_init();
     212        repo_init();
    213213        sysman_events_init();
    214214        job_queue_init();
Note: See TracChangeset for help on using the changeset viewer.