Changes in uspace/srv/fs/udf/udf_file.c [38d150e:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/udf/udf_file.c
r38d150e rb7fd2a0 54 54 * @param pos Position with which we read 55 55 * 56 * @return EOK on success or a negativeerror code.57 * 58 */ 59 static int udf_read_extended_allocator(udf_node_t *node, uint16_t icb_flag,56 * @return EOK on success or an error code. 57 * 58 */ 59 static errno_t 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 int rc = block_get(&block, node->instance->service_id, pos,63 errno_t rc = block_get(&block, node->instance->service_id, pos, 64 64 BLOCK_FLAGS_NONE); 65 65 if (rc != EOK) … … 90 90 * @param len Length of sequence 91 91 * 92 * @return EOK on success or a negativeerror code.93 * 94 */ 95 int udf_read_allocation_sequence(udf_node_t *node, uint8_t *af,92 * @return EOK on success or an error code. 93 * 94 */ 95 errno_t 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 { … … 231 231 * @param node UDF node 232 232 * 233 * @return EOK on success or a negativeerror code.234 */ 235 int udf_read_icb(udf_node_t *node)233 * @return EOK on success or an error code. 234 */ 235 errno_t udf_read_icb(udf_node_t *node) 236 236 { 237 237 while (true) { … … 239 239 240 240 block_t *block = NULL; 241 int rc = block_get(&block, node->instance->service_id, pos,241 errno_t rc = block_get(&block, node->instance->service_id, pos, 242 242 BLOCK_FLAGS_NONE); 243 243 if (rc != EOK) … … 300 300 * @param node UDF node 301 301 * 302 * @return EOK on success or a negativeerror code.303 * 304 */ 305 int udf_node_get_core(udf_node_t *node)302 * @return EOK on success or an error code. 303 * 304 */ 305 errno_t udf_node_get_core(udf_node_t *node) 306 306 { 307 307 node->link_cnt = 1; … … 315 315 * @param pos Number of FID which we need to find 316 316 * 317 * @return EOK on success or a negativeerror code.318 * 319 */ 320 static int udf_get_fid_in_data(udf_file_identifier_descriptor_t **fid,317 * @return EOK on success or an error code. 318 * 319 */ 320 static errno_t udf_get_fid_in_data(udf_file_identifier_descriptor_t **fid, 321 321 udf_node_t *node, aoff64_t pos) 322 322 { … … 366 366 * @param pos Number of FID which we need to find 367 367 * 368 * @return EOK on success or a negativeerror code.369 * 370 */ 371 int udf_get_fid(udf_file_identifier_descriptor_t **fid, block_t **block,368 * @return EOK on success or an error code. 369 * 370 */ 371 errno_t udf_get_fid(udf_file_identifier_descriptor_t **fid, block_t **block, 372 372 udf_node_t *node, aoff64_t pos) 373 373 { … … 385 385 * @param pos Number of FID which we need to find 386 386 * 387 * @return EOK on success or a negativeerror code.388 * 389 */ 390 int udf_get_fid_in_allocator(udf_file_identifier_descriptor_t **fid,387 * @return EOK on success or an error code. 388 * 389 */ 390 errno_t 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 int rc = block_get(block, node->instance->service_id,404 errno_t rc = block_get(block, node->instance->service_id, 405 405 node->allocators[j].position + i, BLOCK_FLAGS_NONE); 406 406 if (rc != EOK) { … … 466 466 * @param len Length of buf 467 467 * 468 * @return EOK on success or a negativeerror code.469 * 470 */ 471 int udf_get_fid_in_sector(udf_file_identifier_descriptor_t **fid,468 * @return EOK on success or an error code. 469 * 470 */ 471 errno_t 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) … … 573 573 * @param len Length of data for reading 574 574 * 575 * @return EOK on success or a negativeerror code.576 * 577 */ 578 int udf_read_file(size_t *read_len, ipc_callid_t callid, udf_node_t *node,575 * @return EOK on success or an error code. 576 * 577 */ 578 errno_t 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 int rc = block_get(&block, node->instance->service_id,596 errno_t 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.