Changeset 102f641 in mainline for uspace/srv/sysman/units/unit_mnt.c
- Timestamp:
- 2019-09-02T19:01:50Z (18 months ago)
- Children:
- 25697163
- Parents:
- 241f1985
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/sysman/units/unit_mnt.c
r241f1985 r102f641 41 41 42 42 static config_item_t unit_configuration[] = { 43 { "What", &config_parse_string, offsetof(unit_mnt_t, device), NULL},44 { "Where", &config_parse_string, offsetof(unit_mnt_t, mountpoint), NULL},45 { "Type", &config_parse_string, offsetof(unit_mnt_t, type), NULL},46 { "Autostart", &config_parse_bool, offsetof(unit_mnt_t, autostart), "true"},47 { "Blocking", &config_parse_bool, offsetof(unit_mnt_t, blocking), "true"},43 { "What", &config_parse_string, offsetof(unit_mnt_t, device), NULL }, 44 { "Where", &config_parse_string, offsetof(unit_mnt_t, mountpoint), NULL }, 45 { "Type", &config_parse_string, offsetof(unit_mnt_t, type), NULL }, 46 { "Autostart", &config_parse_bool, offsetof(unit_mnt_t, autostart), "true" }, 47 { "Blocking", &config_parse_bool, offsetof(unit_mnt_t, blocking), "true" }, 48 48 CONFIGURATION_ITEM_SENTINEL 49 49 }; … … 195 195 assert(!u_mnt->autostart || u_mnt->blocking); 196 196 197 198 197 assert(unit->state == STATE_STOPPED); 199 198 … … 203 202 mnt_data.mountpoint = u_mnt->mountpoint; 204 203 mnt_data.device = u_mnt->device; 205 /* TODO use other mount parameters 204 /* 205 * TODO use other mount parameters 206 206 * mnt_data.options = u_mnt->options; 207 207 * mnt_data.instance = u_mnt->instance; … … 235 235 assert(!u_mnt->autostart || u_mnt->blocking); 236 236 237 238 237 // note: we should never hit STATE_STARTING, since it'd mean there are 239 238 // two jobs running at once (unless job cancellation is implemented) … … 284 283 } 285 284 286 287 DEFINE_UNIT_VMT(unit_mnt) 288 285 DEFINE_UNIT_VMT(unit_mnt);
Note: See TracChangeset
for help on using the changeset viewer.