Changeset 44fe800 in mainline for uspace/lib/c


Ignore:
Timestamp:
2015-10-17T21:50:38Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
68b5dd11
Parents:
ea0ff6b
Message:

Create file system when creating partition.

Location:
uspace/lib/c
Files:
4 edited

Legend:

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

    rea0ff6b r44fe800  
    250250}
    251251
     252/** Create file system. */
     253int vol_part_mkfs(vol_t *vol, service_id_t sid, vol_fstype_t fstype)
     254{
     255        async_exch_t *exch;
     256        int retval;
     257
     258        exch = async_exchange_begin(vol->sess);
     259        retval = async_req_2_0(exch, VOL_PART_MKFS, sid, fstype);
     260        async_exchange_end(exch);
     261
     262        if (retval != EOK)
     263                return retval;
     264
     265        return EOK;
     266}
     267
    252268/** @}
    253269 */
  • uspace/lib/c/include/ipc/vol.h

    rea0ff6b r44fe800  
    4040        VOL_PART_ADD,
    4141        VOL_PART_INFO,
    42         VOL_PART_EMPTY
     42        VOL_PART_EMPTY,
     43        VOL_PART_MKFS
    4344} vol_request_t;
    4445
  • uspace/lib/c/include/types/vol.h

    rea0ff6b r44fe800  
    3535#ifndef LIBC_TYPES_VOL_H_
    3636#define LIBC_TYPES_VOL_H_
     37
     38#include <async.h>
    3739
    3840typedef enum {
  • uspace/lib/c/include/vol.h

    rea0ff6b r44fe800  
    4848extern int vol_part_info(vol_t *, service_id_t, vol_part_info_t *);
    4949extern int vol_part_empty(vol_t *, service_id_t);
     50extern int vol_part_mkfs(vol_t *, service_id_t, vol_fstype_t);
    5051
    5152#endif
Note: See TracChangeset for help on using the changeset viewer.