Ignore:
File:
1 edited

Legend:

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

    r38d150e rb7fd2a0  
    8181 * @param vd         Returned value - Volume Descriptor.
    8282 *
    83  * @return EOK on success or a negative error code.
    84  *
    85  */
    86 static int udf_volume_recongnition_structure_test(service_id_t service_id,
     83 * @return EOK on success or an error code.
     84 *
     85 */
     86static errno_t udf_volume_recongnition_structure_test(service_id_t service_id,
    8787    aoff64_t addr, udf_vrs_descriptor_t *vd)
    8888{
     
    9898 * @param service_id
    9999 *
    100  * @return    EOK on success or a negative error code.
    101  */
    102 int udf_volume_recongnition(service_id_t service_id)
     100 * @return    EOK on success or an error code.
     101 */
     102errno_t udf_volume_recongnition(service_id_t service_id)
    103103{
    104104        aoff64_t addr = VRS_ADDR;
     
    109109                return ENOMEM;
    110110       
    111         int rc = udf_volume_recongnition_structure_test(service_id, addr, vd);
     111        errno_t rc = udf_volume_recongnition_structure_test(service_id, addr, vd);
    112112        if (rc != EOK) {
    113113                free(vd);
     
    167167 * @param sector_size Expected sector size
    168168 *
    169  * @return EOK on success or a negative error code.
    170  *
    171  */
    172 static int udf_get_anchor_volume_descriptor_by_ssize(service_id_t service_id,
     169 * @return EOK on success or an error code.
     170 *
     171 */
     172static errno_t udf_get_anchor_volume_descriptor_by_ssize(service_id_t service_id,
    173173    udf_anchor_volume_descriptor_t *avd, uint32_t sector_size)
    174174{
    175         int rc = block_read_bytes_direct(service_id,
     175        errno_t rc = block_read_bytes_direct(service_id,
    176176            UDF_AVDP_SECTOR * sector_size,
    177177            sizeof(udf_anchor_volume_descriptor_t), avd);
     
    204204 * @param avd        Returned value - Anchor Volume Descriptor
    205205 *
    206  * @return EOK on success or a negative error code.
    207  *
    208  */
    209 int udf_get_anchor_volume_descriptor(service_id_t service_id,
     206 * @return EOK on success or an error code.
     207 *
     208 */
     209errno_t udf_get_anchor_volume_descriptor(service_id_t service_id,
    210210    udf_anchor_volume_descriptor_t *avd)
    211211{
     
    213213       
    214214        udf_instance_t *instance;
    215         int rc = fs_instance_get(service_id, (void **) &instance);
     215        errno_t rc = fs_instance_get(service_id, (void **) &instance);
    216216        if (rc != EOK)
    217217                return rc;
     
    357357 * @param id       Index of partition in instance::partitions array
    358358 *
    359  * @return EOK on success or a negative error code.
    360  *
    361  */
    362 static int udf_read_virtual_partition(udf_instance_t *instance, uint32_t pos,
     359 * @return EOK on success or an error code.
     360 *
     361 */
     362static errno_t udf_read_virtual_partition(udf_instance_t *instance, uint32_t pos,
    363363    uint32_t id)
    364364{
    365365        block_t *block = NULL;
    366         int rc = block_get(&block, instance->service_id, pos,
     366        errno_t rc = block_get(&block, instance->service_id, pos,
    367367            BLOCK_FLAGS_NONE);
    368368        if (rc != EOK)
     
    438438 * @param instance UDF instance
    439439 *
    440  * @return EOK on success or a negative error code.
    441  *
    442  */
    443 static int udf_fill_volume_info(udf_logical_volume_descriptor_t *lvd,
     440 * @return EOK on success or an error code.
     441 *
     442 */
     443static errno_t udf_fill_volume_info(udf_logical_volume_descriptor_t *lvd,
    444444    size_t lvd_cnt, udf_partition_descriptor_t *pd, size_t pd_cnt,
    445445    udf_instance_t *instance)
     
    553553                                instance->partitions[j].number =
    554554                                    FLE16(metadata->partition_number);
    555                                 int rc = udf_read_virtual_partition(instance,
     555                                errno_t rc = udf_read_virtual_partition(instance,
    556556                                    FLE32(metadata->metadata_fileloc) +
    557557                                    FLE32(pd[pd_num].starting_location), j);
     
    598598 * @param addr       UDF extent descriptor (ECMA 167 3/7.1)
    599599 *
    600  * @return EOK on success or a negative error code.
    601  *
    602  */
    603 int udf_read_volume_descriptor_sequence(service_id_t service_id,
     600 * @return EOK on success or an error code.
     601 *
     602 */
     603errno_t udf_read_volume_descriptor_sequence(service_id_t service_id,
    604604    udf_extent_t addr)
    605605{
    606606        udf_instance_t *instance;
    607         int rc = fs_instance_get(service_id, (void **) &instance);
     607        errno_t rc = fs_instance_get(service_id, (void **) &instance);
    608608        if (rc != EOK)
    609609                return rc;
Note: See TracChangeset for help on using the changeset viewer.