Ignore:
File:
1 edited

Legend:

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

    rb7fd2a0 rdd8ab1c  
    5050#include "types/part.h"
    5151
    52 static errno_t vol_part_add_locked(service_id_t);
     52static int 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 errno_t vol_part_check_new(void)
     71static int vol_part_check_new(void)
    7272{
    7373        bool already_known;
     
    7575        service_id_t *svcs;
    7676        size_t count, i;
    77         errno_t rc;
     77        int rc;
    7878
    7979        fibril_mutex_lock(&vol_parts_lock);
     
    144144}
    145145
    146 static errno_t vol_part_probe(vol_part_t *part)
     146static int vol_part_probe(vol_part_t *part)
    147147{
    148148        bool empty;
     
    150150        struct fsname_type *fst;
    151151        char *label;
    152         errno_t rc;
     152        int rc;
    153153
    154154        log_msg(LOG_DEFAULT, LVL_NOTE, "Probe partition %s", part->svc_name);
     
    204204}
    205205
    206 static errno_t vol_part_add_locked(service_id_t sid)
     206static int vol_part_add_locked(service_id_t sid)
    207207{
    208208        vol_part_t *part;
    209         errno_t rc;
     209        int rc;
    210210
    211211        assert(fibril_mutex_is_locked(&vol_parts_lock));
     
    244244}
    245245
    246 errno_t vol_part_add(service_id_t sid)
    247 {
    248         errno_t rc;
     246int vol_part_add(service_id_t sid)
     247{
     248        int rc;
    249249
    250250        fibril_mutex_lock(&vol_parts_lock);
     
    260260}
    261261
    262 errno_t vol_part_init(void)
    263 {
    264         return EOK;
    265 }
    266 
    267 errno_t vol_part_discovery_start(void)
    268 {
    269         errno_t rc;
     262int vol_part_init(void)
     263{
     264        return EOK;
     265}
     266
     267int vol_part_discovery_start(void)
     268{
     269        int 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 errno_t vol_part_get_ids(service_id_t *id_buf, size_t buf_size, size_t *act_size)
     282int 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 errno_t vol_part_find_by_id(service_id_t sid, vol_part_t **rpart)
     310int 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 errno_t vol_part_empty_part(vol_part_t *part)
    324 {
    325         errno_t rc;
     323int vol_part_empty_part(vol_part_t *part)
     324{
     325        int rc;
    326326
    327327        log_msg(LOG_DEFAULT, LVL_DEBUG, "vol_part_empty_part()");
     
    338338}
    339339
    340 errno_t vol_part_mkfs_part(vol_part_t *part, vol_fstype_t fstype,
     340int vol_part_mkfs_part(vol_part_t *part, vol_fstype_t fstype,
    341341    const char *label)
    342342{
    343         errno_t rc;
     343        int rc;
    344344
    345345        log_msg(LOG_DEFAULT, LVL_DEBUG, "vol_part_mkfs_part()");
     
    370370}
    371371
    372 errno_t vol_part_get_info(vol_part_t *part, vol_part_info_t *pinfo)
     372int 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.