Changeset 72c72d4 in mainline for uspace/lib/c/generic/vol.c


Ignore:
Timestamp:
2018-06-29T13:41:13Z (6 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/lib/c/generic/vol.c

    rdb9c889 r72c72d4  
    235235}
    236236
     237/** Unmount partition (and possibly eject the media). */
     238errno_t vol_part_eject(vol_t *vol, service_id_t sid)
     239{
     240        async_exch_t *exch;
     241        errno_t retval;
     242
     243        exch = async_exchange_begin(vol->sess);
     244        retval = async_req_1_0(exch, VOL_PART_EJECT, sid);
     245        async_exchange_end(exch);
     246
     247        if (retval != EOK)
     248                return retval;
     249
     250        return EOK;
     251}
     252
    237253/** Erase partition (to the extent where we will consider it not containing
    238254 * a file system.
Note: See TracChangeset for help on using the changeset viewer.