Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/udf/udf_file.c

    r38d150e rb7fd2a0  
    5454 * @param pos      Position with which we read
    5555 *
    56  * @return EOK on success or a negative error 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 */
     59static errno_t udf_read_extended_allocator(udf_node_t *node, uint16_t icb_flag,
    6060    uint32_t pos)
    6161{
    6262        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,
    6464            BLOCK_FLAGS_NONE);
    6565        if (rc != EOK)
     
    9090 * @param len         Length of sequence
    9191 *
    92  * @return EOK on success or a negative error 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 */
     95errno_t udf_read_allocation_sequence(udf_node_t *node, uint8_t *af,
    9696    uint16_t icb_flag, uint32_t start_alloc, uint32_t len)
    9797{
     
    231231 * @param node    UDF node
    232232 *
    233  * @return    EOK on success or a negative error code.
    234  */
    235 int udf_read_icb(udf_node_t *node)
     233 * @return    EOK on success or an error code.
     234 */
     235errno_t udf_read_icb(udf_node_t *node)
    236236{
    237237        while (true) {
     
    239239               
    240240                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,
    242242                    BLOCK_FLAGS_NONE);
    243243                if (rc != EOK)
     
    300300 * @param node UDF node
    301301 *
    302  * @return EOK on success or a negative error code.
    303  *
    304  */
    305 int udf_node_get_core(udf_node_t *node)
     302 * @return EOK on success or an error code.
     303 *
     304 */
     305errno_t udf_node_get_core(udf_node_t *node)
    306306{
    307307        node->link_cnt = 1;
     
    315315 * @param pos  Number of FID which we need to find
    316316 *
    317  * @return EOK on success or a negative error 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 */
     320static errno_t udf_get_fid_in_data(udf_file_identifier_descriptor_t **fid,
    321321    udf_node_t *node, aoff64_t pos)
    322322{
     
    366366 * @param pos   Number of FID which we need to find
    367367 *
    368  * @return EOK on success or a negative error 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 */
     371errno_t udf_get_fid(udf_file_identifier_descriptor_t **fid, block_t **block,
    372372    udf_node_t *node, aoff64_t pos)
    373373{
     
    385385 * @param pos   Number of FID which we need to find
    386386 *
    387  * @return EOK on success or a negative error 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 */
     390errno_t udf_get_fid_in_allocator(udf_file_identifier_descriptor_t **fid,
    391391    block_t **block, udf_node_t *node, aoff64_t pos)
    392392{
     
    402402                size_t i = 0;
    403403                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,
    405405                            node->allocators[j].position + i, BLOCK_FLAGS_NONE);
    406406                        if (rc != EOK) {
     
    466466 * @param len   Length of buf
    467467 *
    468  * @return EOK on success or a negative error 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 */
     471errno_t udf_get_fid_in_sector(udf_file_identifier_descriptor_t **fid,
    472472    block_t **block, udf_node_t *node, aoff64_t pos, size_t *n, void **buf,
    473473    size_t *len)
     
    573573 * @param len      Length of data for reading
    574574 *
    575  * @return EOK on success or a negative error 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 */
     578errno_t udf_read_file(size_t *read_len, ipc_callid_t callid, udf_node_t *node,
    579579    aoff64_t pos, size_t len)
    580580{
     
    594594       
    595595        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,
    597597            node->allocators[i].position + (sector_num - sector_cnt),
    598598            BLOCK_FLAGS_NONE);
Note: See TracChangeset for help on using the changeset viewer.