Changeset af92309 in mainline for uspace/srv/sysman/units/unit_cfg.c
- Timestamp:
- 2019-08-07T09:33:04Z (6 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/sysman/units/unit_cfg.c
r918ac9b raf92309 38 38 #include <sysman/unit.h> 39 39 40 #include " configuration.h"40 #include "repo.h" 41 41 #include "log.h" 42 42 #include "unit.h" … … 82 82 } 83 83 84 unit_t *u = configuration_find_unit_by_name(unit_name);84 unit_t *u = repo_find_unit_by_name(unit_name); 85 85 if (u != NULL) { 86 86 // TODO allow updating configuration of existing unit … … 162 162 } 163 163 164 configuration_start_update();164 repo_begin_update(); 165 165 166 166 while ((de = readdir(dir))) { … … 178 178 179 179 assert(unit->state == STATE_EMBRYO); 180 configuration_add_unit(unit);180 repo_add_unit(unit); 181 181 } 182 182 closedir(dir); 183 183 184 int rc = configuration_resolve_dependecies();184 int rc = repo_resolve_dependecies(); 185 185 if (rc != EOK) { 186 configuration_rollback();186 repo_rollback(); 187 187 return rc; 188 188 } 189 189 190 configuration_commit();190 repo_commit(); 191 191 return EOK; 192 192 }
Note:
See TracChangeset
for help on using the changeset viewer.