Changeset 0ecfc62 in mainline for uspace/lib/c/generic/vol.c
- Timestamp:
- 2015-10-09T18:11:08Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3a43785
- Parents:
- 372df8f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/vol.c
r372df8f r0ecfc62 192 192 { 193 193 async_exch_t *exch; 194 sysarg_t dcnt, ltype, flags;195 i nt retval;194 sysarg_t retval; 195 ipc_call_t answer; 196 196 197 197 exch = async_exchange_begin(vol->sess); 198 retval = async_req_1_3(exch, VOL_PART_INFO, sid, &dcnt, <ype,199 &flags);198 aid_t req = async_send_1(exch, VOL_PART_INFO, sid, &answer); 199 int rc = async_data_read_start(exch, vinfo, sizeof(vol_part_info_t)); 200 200 async_exchange_end(exch); 201 201 202 if (rc != EOK) { 203 async_forget(req); 204 return EIO; 205 } 206 207 async_wait_for(req, &retval); 202 208 if (retval != EOK) 203 209 return EIO; 204 210 205 vinfo->dcnt = (label_disk_cnt_t)dcnt;206 vinfo->ltype = (label_type_t)ltype;207 vinfo->flags = (label_flags_t)flags;208 211 return EOK; 209 212 }
Note:
See TracChangeset
for help on using the changeset viewer.