Changeset edebb4a1 in mainline for uspace/lib/c/generic/vol.c


Ignore:
Timestamp:
2015-10-14T22:30:12Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ea0ff6b
Parents:
4b6635a7
Message:

Handle dummy partition addition/removal during label destruction/creation. Handle dummy label properly in fdisk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/vol.c

    r4b6635a7 redebb4a1  
    188188}
    189189
     190/** Add partition.
     191 *
     192 * After a partition is created (e.g. as a result of deleting a label
     193 * the dummy partition is created), it can take some (unknown) time
     194 * until it is discovered.
     195 */
     196int vol_part_add(vol_t *vol, service_id_t sid)
     197{
     198        async_exch_t *exch;
     199        int retval;
     200
     201        exch = async_exchange_begin(vol->sess);
     202        retval = async_req_1_0(exch, VOL_PART_ADD, sid);
     203        async_exchange_end(exch);
     204
     205        if (retval != EOK)
     206                return retval;
     207
     208        return EOK;
     209}
     210
    190211/** Get partition information. */
    191212int vol_part_info(vol_t *vol, service_id_t sid, vol_part_info_t *vinfo)
Note: See TracChangeset for help on using the changeset viewer.