Ignore:
File:
1 edited

Legend:

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

    rdd8ab1c rb7fd2a0  
    5050#include "types/part.h"
    5151
    52 static int vol_part_add_locked(service_id_t);
     52static errno_t vol_part_add_locked(service_id_t);
    5353static LIST_INITIALIZE(vol_parts); /* of vol_part_t */
    5454static FIBRIL_MUTEX_INITIALIZE(vol_parts_lock);
     
    6969
    7070/** Check for new partitions */
    71 static int vol_part_check_new(void)
     71static errno_t vol_part_check_new(void)
    7272{
    7373        bool already_known;
     
    7575        service_id_t *svcs;
    7676        size_t count, i;
    77         int rc;
     77        errno_t rc;
    7878
    7979        fibril_mutex_lock(&vol_parts_lock);
     
    144144}
    145145
    146 static int vol_part_probe(vol_part_t *part)
     146static errno_t vol_part_probe(vol_part_t *part)
    147147{
    148148        bool empty;
     
    150150        struct fsname_type *fst;
    151151        char *label;
    152         int rc;
     152        errno_t rc;
    153153
    154154        log_msg(LOG_DEFAULT, LVL_NOTE, "Probe partition %s", part->svc_name);
     
    204204}
    205205
    206 static int vol_part_add_locked(service_id_t sid)
     206static errno_t vol_part_add_locked(service_id_t sid)
    207207{
    208208        vol_part_t *part;
    209         int rc;
     209        errno_t rc;
    210210
    211211        assert(fibril_mutex_is_locked(&vol_parts_lock));
     
    244244}
    245245
    246 int vol_part_add(service_id_t sid)
    247 {
    248         int rc;
     246errno_t vol_part_add(service_id_t sid)
     247{
     248        errno_t rc;
    249249
    250250        fibril_mutex_lock(&vol_parts_lock);
     
    260260}
    261261
    262 int vol_part_init(void)
    263 {
    264         return EOK;
    265 }
    266 
    267 int vol_part_discovery_start(void)
    268 {
    269         int rc;
     262errno_t vol_part_init(void)
     263{
     264        return EOK;
     265}
     266
     267errno_t vol_part_discovery_start(void)
     268{
     269        errno_t rc;
    270270
    271271        rc = loc_register_cat_change_cb(vol_part_cat_change_cb);
     
    280280
    281281/** Get list of partitions as array of service IDs. */
    282 int vol_part_get_ids(service_id_t *id_buf, size_t buf_size, size_t *act_size)
     282errno_t vol_part_get_ids(service_id_t *id_buf, size_t buf_size, size_t *act_size)
    283283{
    284284        size_t act_cnt;
     
    308308}
    309309
    310 int vol_part_find_by_id(service_id_t sid, vol_part_t **rpart)
     310errno_t vol_part_find_by_id(service_id_t sid, vol_part_t **rpart)
    311311{
    312312        list_foreach(vol_parts, lparts, vol_part_t, part) {
     
    321321}
    322322
    323 int vol_part_empty_part(vol_part_t *part)
    324 {
    325         int rc;
     323errno_t vol_part_empty_part(vol_part_t *part)
     324{
     325        errno_t rc;
    326326
    327327        log_msg(LOG_DEFAULT, LVL_DEBUG, "vol_part_empty_part()");
     
    338338}
    339339
    340 int vol_part_mkfs_part(vol_part_t *part, vol_fstype_t fstype,
     340errno_t vol_part_mkfs_part(vol_part_t *part, vol_fstype_t fstype,
    341341    const char *label)
    342342{
    343         int rc;
     343        errno_t rc;
    344344
    345345        log_msg(LOG_DEFAULT, LVL_DEBUG, "vol_part_mkfs_part()");
     
    370370}
    371371
    372 int vol_part_get_info(vol_part_t *part, vol_part_info_t *pinfo)
     372errno_t vol_part_get_info(vol_part_t *part, vol_part_info_t *pinfo)
    373373{
    374374        pinfo->pcnt = part->pcnt;
Note: See TracChangeset for help on using the changeset viewer.