在 file_system.c file 文件
unsigned long int get_next_sector(void) //根据当前簇号,获取下一个扇区地址 { unsigned long int LBA; unsigned int i; LBA=(file.next_cluster_number)/((dbr[driver_number].bytes_per_sectors)/4); //计算扇区地址 i=(file.next_cluster_number)*4-LBA*dbr[driver_number].bytes_per_sectors; //计算偏移地址
解析一下为什么这样计算 谢谢 computer00 |