Changeset 0ecfc62 in mainline for uspace/srv/volsrv/part.c


Ignore:
Timestamp:
2015-10-09T18:11:08Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3a43785
Parents:
372df8f
Message:

Information structures need updating to new model.

File:
1 edited

Legend:

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

    r372df8f r0ecfc62  
    113113
    114114        link_initialize(&part->lparts);
    115         part->dcnt = dc_empty;
     115        part->pcnt = vpc_empty;
    116116
    117117        return part;
     
    149149        log_msg(LOG_DEFAULT, LVL_NOTE, "Probe partition %s", part->svc_name);
    150150
    151         part->dcnt = dc_unknown;
     151        part->pcnt = vpc_unknown;
    152152        list_append(&part->lparts, &vol_parts);
    153153
     
    227227int vol_part_empty_part(vol_part_t *part)
    228228{
    229         part->dcnt = dc_empty;
    230 
    231         return EOK;
    232 }
    233 
    234 int vol_part_get_info(vol_part_t *part, vol_part_info_t *dinfo)
    235 {
    236         dinfo->dcnt = part->dcnt;
     229        part->pcnt = vpc_empty;
     230
     231        return EOK;
     232}
     233
     234int vol_part_get_info(vol_part_t *part, vol_part_info_t *pinfo)
     235{
     236        pinfo->pcnt = part->pcnt;
     237        pinfo->fstype = part->fstype;
    237238        return EOK;
    238239}
Note: See TracChangeset for help on using the changeset viewer.