Changeset cfbcd86 in mainline
- Timestamp:
- 2011-03-24T19:53:42Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 54caa41b
- Parents:
- 4611094f
- Location:
- uspace/srv/fs/minixfs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/minixfs/mfs.h
r4611094f rcfbcd86 116 116 extern bool mfs_is_directory(fs_node_t *fsnode); 117 117 extern bool mfs_is_file(fs_node_t *fsnode); 118 extern char mfs_plb_get_char(unsigned pos); 118 119 extern int mfs_root_get(fs_node_t **rfn, devmap_handle_t handle); 119 120 extern devmap_handle_t mfs_device_get(fs_node_t *fsnode); 120 121 extern int mfs_instance_get(devmap_handle_t handle, 121 122 struct mfs_instance **instance); 123 extern 122 124 int mfs_node_get(fs_node_t **rfn, devmap_handle_t devmap_handle, 123 125 fs_index_t index); -
uspace/srv/fs/minixfs/mfs_ops.c
r4611094f rcfbcd86 53 53 .is_directory = mfs_is_directory, 54 54 .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 56 57 }; 57 58 … … 311 312 } 312 313 314 char mfs_plb_get_char(unsigned pos) 315 { 316 return mfs_reg.plb_ro[pos % PLB_SIZE]; 317 } 318 313 319 /* 314 320 * Find a filesystem instance given the devmap handle -
uspace/srv/fs/minixfs/mfs_read.c
r4611094f rcfbcd86 59 59 60 60 if (mnode->ino_i->i_size < (int32_t) pos) { 61 /*Trying to read beyond the end of file*/ 61 62 r = EOK; 62 63 *b = 0;
Note:
See TracChangeset
for help on using the changeset viewer.