Changeset 74ea3c6 in mainline for uspace/srv/fs/fat/fat_ops.c
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.