Changeset af92309 in mainline for uspace/srv/sysman/units/unit_cfg.c


Ignore:
Timestamp:
2019-08-07T09:33:04Z (6 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/units/unit_cfg.c

    r918ac9b raf92309  
    3838#include <sysman/unit.h>
    3939
    40 #include "configuration.h"
     40#include "repo.h"
    4141#include "log.h"
    4242#include "unit.h"
     
    8282        }
    8383       
    84         unit_t *u = configuration_find_unit_by_name(unit_name);
     84        unit_t *u = repo_find_unit_by_name(unit_name);
    8585        if (u != NULL) {
    8686                // TODO allow updating configuration of existing unit
     
    162162        }
    163163
    164         configuration_start_update();
     164        repo_begin_update();
    165165
    166166        while ((de = readdir(dir))) {
     
    178178
    179179                assert(unit->state == STATE_EMBRYO);
    180                 configuration_add_unit(unit);
     180                repo_add_unit(unit);
    181181        }
    182182        closedir(dir);
    183183
    184         int rc = configuration_resolve_dependecies();
     184        int rc = repo_resolve_dependecies();
    185185        if (rc != EOK) {
    186                 configuration_rollback();
     186                repo_rollback();
    187187                return rc;
    188188        }
    189189
    190         configuration_commit();
     190        repo_commit();
    191191        return EOK;
    192192}
Note: See TracChangeset for help on using the changeset viewer.