Changeset 781408e in mainline


Ignore:
Timestamp:
2013-08-02T17:17:08Z (11 years ago)
Author:
Manuele Conti <conti.ma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3432ddb
Parents:
38eb0d7
Message:

Implement free and total count operation for cdfs and udf filesystem.

Location:
uspace/srv/fs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/cdfs/cdfs_ops.c

    r38eb0d7 r781408e  
    632632}
    633633
     634static int cdfs_total_block_count(service_id_t service_id, uint64_t *count)
     635{
     636        *count = 0;
     637       
     638        return EOK;
     639}
     640
     641static int cdfs_free_block_count(service_id_t service_id, uint64_t *count)
     642{
     643        *count = 0;
     644       
     645        return EOK;
     646}
     647
    634648libfs_ops_t cdfs_libfs_ops = {
    635649        .root_get = cdfs_root_get,
     
    649663        .is_file = cdfs_is_file,
    650664        .service_get = cdfs_service_get,
    651         .size_block = cdfs_size_block
     665        .size_block = cdfs_size_block,
     666        .total_block_count = cdfs_total_block_count,
     667        .free_block_count = cdfs_free_block_count
    652668};
    653669
  • uspace/srv/fs/udf/udf_ops.c

    r38eb0d7 r781408e  
    264264}
    265265
     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
    266280libfs_ops_t udf_libfs_ops = {
    267281        .root_get = udf_root_get,
     
    281295        .is_file = udf_is_file,
    282296        .service_get = udf_service_get,
    283         .size_block = udf_size_block
     297        .size_block = udf_size_block,
     298        .total_block_count = udf_total_block_count,
     299        .free_block_count = udf_free_block_count
    284300};
    285301
Note: See TracChangeset for help on using the changeset viewer.