Parent Directory
|
Revision Log
|
Patch
| revision 1.1 by bellard, Thu Apr 28 21:15:08 2005 UTC | revision 1.2 by bellard, Sat Nov 19 18:17:16 2005 UTC | |
|---|---|---|
| # | Line 703 static int init_directory(BDRVVVFATState | Line 703 static int init_directory(BDRVVVFATState |
| 703 | memset(&(s->first_sectors[0]),0,0x40*0x200); | memset(&(s->first_sectors[0]),0,0x40*0x200); |
| 704 | ||
| 705 | /* TODO: if FAT32, this is probably wrong */ | /* TODO: if FAT32, this is probably wrong */ |
| 706 | s->sectors_per_fat=0xfc; | s->sectors_per_fat=0xec; |
| 707 | s->sectors_per_cluster=0x10; | s->sectors_per_cluster=0x10; |
| 708 | s->cluster_size=s->sectors_per_cluster*0x200; | s->cluster_size=s->sectors_per_cluster*0x200; |
| 709 | s->cluster=malloc(s->cluster_size); | s->cluster=malloc(s->cluster_size); |
|
||||||||
| savannah-hackers-public@gnu.org | ViewVC Help |
| Powered by ViewVC 1.1.26 |