Changes in uspace/srv/volsrv/part.c [ca127f37:9e45a41] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/volsrv/part.c
rca127f37 r9e45a41 1 1 /* 2 * Copyright (c) 20 24Jiri Svoboda2 * Copyright (c) 2015 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 52 52 #include "types/part.h" 53 53 #include "volume.h" 54 #include "volsrv.h"55 54 56 55 static errno_t vol_part_add_locked(vol_parts_t *, service_id_t); … … 404 403 part->cur_mp_auto = mp_auto; 405 404 406 if (str_cmp(mp, "/w") == 0) {407 log_msg(LOG_DEFAULT, LVL_NOTE, "Mounted system volume - "408 "loading additional configuration.");409 rc = vol_volumes_merge_to(part->parts->volumes,410 vol_cfg_file);411 if (rc != EOK) {412 log_msg(LOG_DEFAULT, LVL_ERROR, "Error loading "413 "additional configuration.");414 return rc;415 }416 }417 418 405 return rc; 419 406 } … … 649 636 650 637 if (part->cur_mp == NULL) { 651 /* Partition is not mounted, nothing to do. */ 652 log_msg(LOG_DEFAULT, LVL_DEBUG, "Partition not mounted, " 653 "nothing to do."); 654 goto done; 638 log_msg(LOG_DEFAULT, LVL_DEBUG, "Attempt to mount unmounted " 639 "partition."); 640 return EINVAL; 655 641 } 656 642 … … 673 659 part->cur_mp = NULL; 674 660 part->cur_mp_auto = false; 675 done: 661 676 662 return EOK; 677 663 }
Note:
See TracChangeset
for help on using the changeset viewer.