Changeset b7a4d06 in mainline for uspace/srv/volsrv/volsrv.c
- Timestamp:
- 2015-07-18T12:55:12Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c43db5f
- Parents:
- 70815a24
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/volsrv/volsrv.c
r70815a24 rb7a4d06 43 43 #include <stdlib.h> 44 44 #include <task.h> 45 #include <vol.h> 45 46 46 47 #include "disk.h" … … 118 119 service_id_t sid; 119 120 vol_disk_t *disk; 121 vol_disk_info_t dinfo; 120 122 int rc; 121 123 … … 127 129 } 128 130 129 async_answer_2(iid, rc, disk->dcnt, disk->ltype); 131 rc = vol_disk_get_info(disk, &dinfo); 132 if (rc != EOK) { 133 async_answer_0(iid, EIO); 134 return; 135 } 136 137 async_answer_3(iid, rc, dinfo.dcnt, dinfo.ltype, dinfo.flags); 130 138 } 131 139 … … 169 177 } 170 178 171 rc = vol_disk_empty (disk);179 rc = vol_disk_empty_disk(disk); 172 180 if (rc != EOK) { 173 181 async_answer_0(iid, EIO);
Note:
See TracChangeset
for help on using the changeset viewer.