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


Ignore:
Timestamp:
2014-04-16T17:14:06Z (11 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f857e8b
Parents:
dba3e2c (diff), 70b570c (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

    rdba3e2c r8b863a62  
    5050#include <assert.h>
    5151#include <fibril_synch.h>
    52 #include <sys/mman.h>
    5352#include <align.h>
    5453#include <malloc.h>
     
    247246       
    248247        return false;
     248}
     249
     250static int udf_size_block(service_id_t service_id, uint32_t *size)
     251{
     252        udf_instance_t *instance;
     253        int rc = fs_instance_get(service_id, (void **) &instance);
     254        if (rc != EOK)
     255                return rc;
     256
     257        if (NULL == instance)
     258                return ENOENT;
     259       
     260        *size = instance->volumes[DEFAULT_VOL].logical_block_size;
     261       
     262        return EOK;
     263}
     264
     265static int udf_total_block_count(service_id_t service_id, uint64_t *count)
     266{
     267        *count = 0;
     268       
     269        return EOK;
     270}
     271
     272static int udf_free_block_count(service_id_t service_id, uint64_t *count)
     273{
     274        *count = 0;
     275       
     276        return EOK;
    249277}
    250278
     
    265293        .is_directory = udf_is_directory,
    266294        .is_file = udf_is_file,
    267         .service_get = udf_service_get
     295        .service_get = udf_service_get,
     296        .size_block = udf_size_block,
     297        .total_block_count = udf_total_block_count,
     298        .free_block_count = udf_free_block_count
    268299};
    269300
Note: See TracChangeset for help on using the changeset viewer.