Changeset ebb1489 in mainline for uspace/srv/volsrv/part.c


Ignore:
Timestamp:
2024-10-13T08:23:40Z (8 weeks ago)
Author:
GitHub <noreply@…>
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)
Message:

Merge branch 'HelenOS:master' into topic/packet-capture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/volsrv/part.c

    r2a0c827c rebb1489  
    11/*
    2  * Copyright (c) 2015 Jiri Svoboda
     2 * Copyright (c) 2024 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    5252#include "types/part.h"
    5353#include "volume.h"
     54#include "volsrv.h"
    5455
    5556static errno_t vol_part_add_locked(vol_parts_t *, service_id_t);
     
    403404        part->cur_mp_auto = mp_auto;
    404405
     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
    405418        return rc;
    406419}
     
    636649
    637650        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;
    641655        }
    642656
     
    659673        part->cur_mp = NULL;
    660674        part->cur_mp_auto = false;
    661 
     675done:
    662676        return EOK;
    663677}
Note: See TracChangeset for help on using the changeset viewer.