Changes in uspace/srv/volsrv/part.c [9e45a41:ca127f37] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/volsrv/part.c
r9e45a41 rca127f37 1 1 /* 2 * Copyright (c) 20 15Jiri Svoboda2 * Copyright (c) 2024 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 52 52 #include "types/part.h" 53 53 #include "volume.h" 54 #include "volsrv.h" 54 55 55 56 static errno_t vol_part_add_locked(vol_parts_t *, service_id_t); … … 403 404 part->cur_mp_auto = mp_auto; 404 405 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 405 418 return rc; 406 419 } … … 636 649 637 650 if (part->cur_mp == NULL) { 638 log_msg(LOG_DEFAULT, LVL_DEBUG, "Attempt to mount unmounted " 639 "partition."); 640 return EINVAL; 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; 641 655 } 642 656 … … 659 673 part->cur_mp = NULL; 660 674 part->cur_mp_auto = false; 661 675 done: 662 676 return EOK; 663 677 }
Note:
See TracChangeset
for help on using the changeset viewer.