Changeset 0773396 in mainline for uspace/srv/fs/udf/udf_ops.c


Ignore:
Timestamp:
2013-12-25T13:05:25Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bc54126c
Parents:
f4a47e52 (diff), 6946f23 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge mainline changes

File:
1 edited

Legend:

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

    rf4a47e52 r0773396  
    249249}
    250250
     251static 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
     266static int udf_total_block_count(service_id_t service_id, uint64_t *count)
     267{
     268        *count = 0;
     269       
     270        return EOK;
     271}
     272
     273static int udf_free_block_count(service_id_t service_id, uint64_t *count)
     274{
     275        *count = 0;
     276       
     277        return EOK;
     278}
     279
    251280libfs_ops_t udf_libfs_ops = {
    252281        .root_get = udf_root_get,
     
    265294        .is_directory = udf_is_directory,
    266295        .is_file = udf_is_file,
    267         .service_get = udf_service_get
     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
    268300};
    269301
Note: See TracChangeset for help on using the changeset viewer.