Changeset 67632f7 in mainline for uspace/lib/fs/libfs.c


Ignore:
Timestamp:
2013-07-11T20:03:39Z (11 years ago)
Author:
Manuele Conti <conti.ma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e8f0158
Parents:
e6edc8d1
Message:

Add total_block and free_block operation.
Implement total_block and free_block operation for mfs.
Fix df application output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/fs/libfs.c

    re6edc8d1 r67632f7  
    864864        if (NULL != ops->size_block)   
    865865                statfs.f_bsize = ops->size_block(service_id);
     866        if (NULL != ops->total_block)
     867                statfs.f_blocks = ops->total_block(service_id);
     868        if (NULL != ops->free_block)
     869                statfs.f_bfree = ops->free_block(service_id);
    866870       
    867871        ops->node_put(fn);
Note: See TracChangeset for help on using the changeset viewer.