Changes in uspace/srv/fs/udf/udf_volume.c [cde999a:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/udf/udf_volume.c
rcde999a rb7fd2a0 84 84 * 85 85 */ 86 static int udf_volume_recongnition_structure_test(service_id_t service_id,86 static errno_t udf_volume_recongnition_structure_test(service_id_t service_id, 87 87 aoff64_t addr, udf_vrs_descriptor_t *vd) 88 88 { … … 100 100 * @return EOK on success or an error code. 101 101 */ 102 int udf_volume_recongnition(service_id_t service_id)102 errno_t udf_volume_recongnition(service_id_t service_id) 103 103 { 104 104 aoff64_t addr = VRS_ADDR; … … 109 109 return ENOMEM; 110 110 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); 112 112 if (rc != EOK) { 113 113 free(vd); … … 170 170 * 171 171 */ 172 static int udf_get_anchor_volume_descriptor_by_ssize(service_id_t service_id,172 static errno_t udf_get_anchor_volume_descriptor_by_ssize(service_id_t service_id, 173 173 udf_anchor_volume_descriptor_t *avd, uint32_t sector_size) 174 174 { 175 int rc = block_read_bytes_direct(service_id,175 errno_t rc = block_read_bytes_direct(service_id, 176 176 UDF_AVDP_SECTOR * sector_size, 177 177 sizeof(udf_anchor_volume_descriptor_t), avd); … … 207 207 * 208 208 */ 209 int udf_get_anchor_volume_descriptor(service_id_t service_id,209 errno_t udf_get_anchor_volume_descriptor(service_id_t service_id, 210 210 udf_anchor_volume_descriptor_t *avd) 211 211 { … … 213 213 214 214 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); 216 216 if (rc != EOK) 217 217 return rc; … … 360 360 * 361 361 */ 362 static int udf_read_virtual_partition(udf_instance_t *instance, uint32_t pos,362 static errno_t udf_read_virtual_partition(udf_instance_t *instance, uint32_t pos, 363 363 uint32_t id) 364 364 { 365 365 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, 367 367 BLOCK_FLAGS_NONE); 368 368 if (rc != EOK) … … 441 441 * 442 442 */ 443 static int udf_fill_volume_info(udf_logical_volume_descriptor_t *lvd,443 static errno_t udf_fill_volume_info(udf_logical_volume_descriptor_t *lvd, 444 444 size_t lvd_cnt, udf_partition_descriptor_t *pd, size_t pd_cnt, 445 445 udf_instance_t *instance) … … 553 553 instance->partitions[j].number = 554 554 FLE16(metadata->partition_number); 555 int rc = udf_read_virtual_partition(instance,555 errno_t rc = udf_read_virtual_partition(instance, 556 556 FLE32(metadata->metadata_fileloc) + 557 557 FLE32(pd[pd_num].starting_location), j); … … 601 601 * 602 602 */ 603 int udf_read_volume_descriptor_sequence(service_id_t service_id,603 errno_t udf_read_volume_descriptor_sequence(service_id_t service_id, 604 604 udf_extent_t addr) 605 605 { 606 606 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); 608 608 if (rc != EOK) 609 609 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.