- Timestamp:
- Dec 13, 2015, 1:37:34 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_fat32/fat32.c
r730 r744 3265 3265 } 3266 3266 3267 // check and ajust count argument 3268 if ( count > (inode->size - seek)) count = inode->size - seek;3267 // check and ajust count argument for a file 3268 if ( (count > (inode->size - seek)) && !inode->is_dir ) count = inode->size - seek; 3269 3269 3270 3270 // compute first_cluster_id and first_byte_to_move … … 4440 4440 } 4441 4441 4442 4443 #if GIET_DEBUG_FAT 4444 unsigned int procid = _get_procid(); 4445 unsigned int x = procid >> (Y_WIDTH + P_WIDTH); 4446 unsigned int y = (procid >> P_WIDTH) & ((1<<Y_WIDTH)-1); 4447 unsigned int p = procid & ((1<<P_WIDTH)-1); 4448 if ( _get_proctime() > GIET_DEBUG_FAT ) 4449 _printf("\n[DEBUG FAT] _fat_readdir(): P[%d,%d,%d] enter for <%s>\n", 4450 x , y , p , _fat.fd[fd_id].inode->name ); 4451 #endif 4452 4442 4453 while ( 1 ) 4443 4454 {
Note: See TracChangeset
for help on using the changeset viewer.