Changeset 66366470 in mainline for uspace/srv/fs/mfs/mfs_ops.c


Ignore:
Timestamp:
2013-07-04T18:55:31Z (12 years ago)
Author:
Manuele Conti <conti.ma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9dc6083
Parents:
d8b47eca
Message:

Start to implement df command line tool.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/mfs/mfs_ops.c

    rd8b47eca r66366470  
    6464static int mfs_check_sanity(struct mfs_sb_info *sbi);
    6565static bool is_power_of_two(uint32_t n);
     66static unsigned int mfs_size_block(fs_node_t *fsnode);
    6667
    6768static hash_table_t open_nodes;
     
    8485        .destroy = mfs_destroy_node,
    8586        .has_children = mfs_has_children,
    86         .lnkcnt_get = mfs_lnkcnt_get
     87        .lnkcnt_get = mfs_lnkcnt_get,
     88        .size_block = mfs_size_block
    8789};
    8890
     
    11361138}
    11371139
     1140static unsigned int
     1141mfs_size_block(fs_node_t *fsnode)
     1142{
     1143        if ( NULL == fsnode )
     1144                return 0;
     1145        /* Get block size from superblock */
     1146        return 512;
     1147}
     1148
    11381149vfs_out_ops_t mfs_ops = {
    11391150        .mounted = mfs_mounted,
Note: See TracChangeset for help on using the changeset viewer.