Ignore:
File:
1 edited

Legend:

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

    rca127f37 r9e45a41  
    11/*
    2  * Copyright (c) 2024 Jiri Svoboda
     2 * Copyright (c) 2015 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    5252#include "types/part.h"
    5353#include "volume.h"
    54 #include "volsrv.h"
    5554
    5655static errno_t vol_part_add_locked(vol_parts_t *, service_id_t);
     
    404403        part->cur_mp_auto = mp_auto;
    405404
    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 
    418405        return rc;
    419406}
     
    649636
    650637        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;
    655641        }
    656642
     
    673659        part->cur_mp = NULL;
    674660        part->cur_mp_auto = false;
    675 done:
     661
    676662        return EOK;
    677663}
Note: See TracChangeset for help on using the changeset viewer.