Changeset 72c72d4 in mainline for uspace/srv/volsrv/part.c


Ignore:
Timestamp:
2018-06-29T13:41:13Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1a9174e
Parents:
db9c889
git-author:
Jiri Svoboda <jiri@…> (2018-06-28 17:40:58)
git-committer:
Jiri Svoboda <jiri@…> (2018-06-29 13:41:13)
Message:

Basic volume eject implementation.

File:
1 edited

Legend:

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

    rdb9c889 r72c72d4  
    478478errno_t vol_part_get_info(vol_part_t *part, vol_part_info_t *pinfo)
    479479{
     480        memset(pinfo, 0, sizeof(*pinfo));
     481
    480482        pinfo->pcnt = part->pcnt;
    481483        pinfo->fstype = part->fstype;
    482484        str_cpy(pinfo->label, sizeof(pinfo->label), part->label);
    483         str_cpy(pinfo->cur_mp, sizeof(pinfo->cur_mp), part->cur_mp);
     485        if (part->cur_mp != NULL)
     486                str_cpy(pinfo->cur_mp, sizeof(pinfo->cur_mp), part->cur_mp);
    484487        pinfo->cur_mp_auto = part->cur_mp_auto;
    485488        return EOK;
Note: See TracChangeset for help on using the changeset viewer.