Changeset cfbcd86 in mainline


Ignore:
Timestamp:
2011-03-24T19:53:42Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
54caa41b
Parents:
4611094f
Message:

Link mfs_plb_get_char to the libfs structure

Location:
uspace/srv/fs/minixfs
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/minixfs/mfs.h

    r4611094f rcfbcd86  
    116116extern bool mfs_is_directory(fs_node_t *fsnode);
    117117extern bool mfs_is_file(fs_node_t *fsnode);
     118extern char mfs_plb_get_char(unsigned pos);
    118119extern int mfs_root_get(fs_node_t **rfn, devmap_handle_t handle);
    119120extern devmap_handle_t mfs_device_get(fs_node_t *fsnode);
    120121extern int mfs_instance_get(devmap_handle_t handle,
    121122                                struct mfs_instance **instance);
     123extern
    122124int mfs_node_get(fs_node_t **rfn, devmap_handle_t devmap_handle,
    123125                        fs_index_t index);
  • uspace/srv/fs/minixfs/mfs_ops.c

    r4611094f rcfbcd86  
    5353        .is_directory = mfs_is_directory,
    5454        .is_file = mfs_is_file,
    55         .node_get = mfs_node_get
     55        .node_get = mfs_node_get,
     56        .plb_get_char = mfs_plb_get_char
    5657};
    5758
     
    311312}
    312313
     314char mfs_plb_get_char(unsigned pos)
     315{
     316        return mfs_reg.plb_ro[pos % PLB_SIZE];
     317}
     318
    313319/*
    314320 * Find a filesystem instance given the devmap handle
  • uspace/srv/fs/minixfs/mfs_read.c

    r4611094f rcfbcd86  
    5959
    6060        if (mnode->ino_i->i_size < (int32_t) pos) {
     61                /*Trying to read beyond the end of file*/
    6162                r = EOK;
    6263                *b = 0;
Note: See TracChangeset for help on using the changeset viewer.