Ignore:
File:
1 edited

Legend:

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

    r781408e r48e3190  
    249249}
    250250
    251 static int udf_size_block(service_id_t service_id, uint32_t *size)
    252 {
    253         udf_instance_t *instance;
    254         int rc = fs_instance_get(service_id, (void **) &instance);
    255         if (rc != EOK)
    256                 return rc;
    257 
    258         if (NULL == instance)
    259                 return ENOENT;
    260        
    261         *size = instance->volumes[DEFAULT_VOL].logical_block_size;
    262        
    263         return EOK;
    264 }
    265 
    266 static int udf_total_block_count(service_id_t service_id, uint64_t *count)
    267 {
    268         *count = 0;
    269        
    270         return EOK;
    271 }
    272 
    273 static int udf_free_block_count(service_id_t service_id, uint64_t *count)
    274 {
    275         *count = 0;
    276        
    277         return EOK;
    278 }
    279 
    280251libfs_ops_t udf_libfs_ops = {
    281252        .root_get = udf_root_get,
     
    294265        .is_directory = udf_is_directory,
    295266        .is_file = udf_is_file,
    296         .service_get = udf_service_get,
    297         .size_block = udf_size_block,
    298         .total_block_count = udf_total_block_count,
    299         .free_block_count = udf_free_block_count
     267        .service_get = udf_service_get
    300268};
    301269
     
    343311        rc = udf_volume_recongnition(service_id);
    344312        if (rc != EOK) {
    345                 log_msg(LOG_DEFAULT, LVL_NOTE, "VRS failed");
     313                log_msg(LVL_NOTE, "VRS failed");
    346314                fs_instance_destroy(service_id);
    347315                free(instance);
     
    354322        rc = udf_get_anchor_volume_descriptor(service_id, &avd);
    355323        if (rc != EOK) {
    356                 log_msg(LOG_DEFAULT, LVL_NOTE, "Anchor read failed");
     324                log_msg(LVL_NOTE, "Anchor read failed");
    357325                fs_instance_destroy(service_id);
    358326                free(instance);
     
    361329        }
    362330       
    363         log_msg(LOG_DEFAULT, LVL_DEBUG,
     331        log_msg(LVL_DEBUG,
    364332            "Volume: Anchor volume descriptor found. Sector size=%" PRIu32,
    365333            instance->sector_size);
    366         log_msg(LOG_DEFAULT, LVL_DEBUG,
     334        log_msg(LVL_DEBUG,
    367335            "Anchor: main sequence [length=%" PRIu32 " (bytes), start=%"
    368336            PRIu32 " (sector)]", avd.main_extent.length,
    369337            avd.main_extent.location);
    370         log_msg(LOG_DEFAULT, LVL_DEBUG,
     338        log_msg(LVL_DEBUG,
    371339            "Anchor: reserve sequence [length=%" PRIu32 " (bytes), start=%"
    372340            PRIu32 " (sector)]", avd.reserve_extent.length,
     
    385353        rc = udf_read_volume_descriptor_sequence(service_id, avd.main_extent);
    386354        if (rc != EOK) {
    387                 log_msg(LOG_DEFAULT, LVL_NOTE, "Volume Descriptor Sequence read failed");
     355                log_msg(LVL_NOTE, "Volume Descriptor Sequence read failed");
    388356                fs_instance_destroy(service_id);
    389357                free(instance);
     
    396364        rc = udf_node_get(&rfn, service_id, instance->volumes[DEFAULT_VOL].root_dir);
    397365        if (rc != EOK) {
    398                 log_msg(LOG_DEFAULT, LVL_NOTE, "Can't create root node");
     366                log_msg(LVL_NOTE, "Can't create root node");
    399367                fs_instance_destroy(service_id);
    400368                free(instance);
Note: See TracChangeset for help on using the changeset viewer.