Changeset ebb1489 in mainline for uspace/srv/volsrv/part.c
- Timestamp:
- 2024-10-13T08:23:40Z (8 weeks ago)
- Children:
- 0472cf17
- Parents:
- 2a0c827c (diff), b3b79981 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- boba-buba <120932204+boba-buba@…> (2024-10-13 08:23:40)
- git-committer:
- GitHub <noreply@…> (2024-10-13 08:23:40)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/volsrv/part.c
r2a0c827c rebb1489 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.