Changeset 74ea3c6 in mainline
- Timestamp:
- 2008-04-12T22:38:32Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 32fb10ed
- Parents:
- e22632a9
- Location:
- uspace
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libfs/libfs.c
re22632a9 r74ea3c6 148 148 149 149 void *par = NULL; 150 void *cur = ops->root_get( );150 void *cur = ops->root_get(dev_handle); 151 151 void *tmp; 152 152 -
uspace/lib/libfs/libfs.h
re22632a9 r74ea3c6 53 53 unsigned (* lnkcnt_get)(void *); 54 54 bool (* has_children)(void *); 55 void *(* root_get)( void);55 void *(* root_get)(dev_handle_t); 56 56 char (* plb_get_char)(unsigned pos); 57 57 bool (* is_directory)(void *); -
uspace/srv/fs/fat/fat_ops.c
re22632a9 r74ea3c6 238 238 if (!(d->attr & (FAT_ATTR_SUBDIR | FAT_ATTR_VOLLABEL))) 239 239 node->type = FAT_FILE; 240 if ((d->attr & FAT_ATTR_SUBDIR) || ! pindex)240 if ((d->attr & FAT_ATTR_SUBDIR) || !index) 241 241 node->type = FAT_DIRECTORY; 242 242 assert((node->type == FAT_FILE) || (node->type == FAT_DIRECTORY)); … … 331 331 { 332 332 return ((fat_node_t *)node)->lnkcnt; 333 } 334 335 static void *fat_root_get(dev_handle_t dev_handle) 336 { 337 return fat_node_get(dev_handle, 0, 0); 338 } 339 340 static char fat_plb_get_char(unsigned pos) 341 { 342 return fat_reg.plb_ro[pos % PLB_SIZE]; 333 343 } 334 344 … … 355 365 .lnkcnt_get = fat_lnkcnt_get, 356 366 .has_children = NULL, 357 .root_get = NULL,358 .plb_get_char = NULL,367 .root_get = fat_root_get, 368 .plb_get_char = fat_plb_get_char, 359 369 .is_directory = fat_is_directory, 360 370 .is_file = fat_is_file -
uspace/srv/fs/tmpfs/tmpfs_ops.c
re22632a9 r74ea3c6 98 98 } 99 99 100 static void *tmpfs_root_get( void)100 static void *tmpfs_root_get(dev_handle_t dev_handle) 101 101 { 102 102 return root;
Note:
See TracChangeset
for help on using the changeset viewer.