Changes in uspace/srv/fs/udf/udf_file.c [b7fd2a0:cde999a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/udf/udf_file.c
rb7fd2a0 rcde999a 57 57 * 58 58 */ 59 static errno_t udf_read_extended_allocator(udf_node_t *node, uint16_t icb_flag,59 static int udf_read_extended_allocator(udf_node_t *node, uint16_t icb_flag, 60 60 uint32_t pos) 61 61 { 62 62 block_t *block = NULL; 63 errno_t rc = block_get(&block, node->instance->service_id, pos,63 int rc = block_get(&block, node->instance->service_id, pos, 64 64 BLOCK_FLAGS_NONE); 65 65 if (rc != EOK) … … 93 93 * 94 94 */ 95 errno_t udf_read_allocation_sequence(udf_node_t *node, uint8_t *af,95 int udf_read_allocation_sequence(udf_node_t *node, uint8_t *af, 96 96 uint16_t icb_flag, uint32_t start_alloc, uint32_t len) 97 97 { … … 233 233 * @return EOK on success or an error code. 234 234 */ 235 errno_t udf_read_icb(udf_node_t *node)235 int udf_read_icb(udf_node_t *node) 236 236 { 237 237 while (true) { … … 239 239 240 240 block_t *block = NULL; 241 errno_t rc = block_get(&block, node->instance->service_id, pos,241 int rc = block_get(&block, node->instance->service_id, pos, 242 242 BLOCK_FLAGS_NONE); 243 243 if (rc != EOK) … … 303 303 * 304 304 */ 305 errno_t udf_node_get_core(udf_node_t *node)305 int udf_node_get_core(udf_node_t *node) 306 306 { 307 307 node->link_cnt = 1; … … 318 318 * 319 319 */ 320 static errno_t udf_get_fid_in_data(udf_file_identifier_descriptor_t **fid,320 static int udf_get_fid_in_data(udf_file_identifier_descriptor_t **fid, 321 321 udf_node_t *node, aoff64_t pos) 322 322 { … … 369 369 * 370 370 */ 371 errno_t udf_get_fid(udf_file_identifier_descriptor_t **fid, block_t **block,371 int udf_get_fid(udf_file_identifier_descriptor_t **fid, block_t **block, 372 372 udf_node_t *node, aoff64_t pos) 373 373 { … … 388 388 * 389 389 */ 390 errno_t udf_get_fid_in_allocator(udf_file_identifier_descriptor_t **fid,390 int udf_get_fid_in_allocator(udf_file_identifier_descriptor_t **fid, 391 391 block_t **block, udf_node_t *node, aoff64_t pos) 392 392 { … … 402 402 size_t i = 0; 403 403 while (i * node->instance->sector_size < node->allocators[j].length) { 404 errno_t rc = block_get(block, node->instance->service_id,404 int rc = block_get(block, node->instance->service_id, 405 405 node->allocators[j].position + i, BLOCK_FLAGS_NONE); 406 406 if (rc != EOK) { … … 469 469 * 470 470 */ 471 errno_t udf_get_fid_in_sector(udf_file_identifier_descriptor_t **fid,471 int udf_get_fid_in_sector(udf_file_identifier_descriptor_t **fid, 472 472 block_t **block, udf_node_t *node, aoff64_t pos, size_t *n, void **buf, 473 473 size_t *len) … … 576 576 * 577 577 */ 578 errno_t udf_read_file(size_t *read_len, ipc_callid_t callid, udf_node_t *node,578 int udf_read_file(size_t *read_len, ipc_callid_t callid, udf_node_t *node, 579 579 aoff64_t pos, size_t len) 580 580 { … … 594 594 595 595 block_t *block = NULL; 596 errno_t rc = block_get(&block, node->instance->service_id,596 int rc = block_get(&block, node->instance->service_id, 597 597 node->allocators[i].position + (sector_num - sector_cnt), 598 598 BLOCK_FLAGS_NONE);
Note:
See TracChangeset
for help on using the changeset viewer.