Lines Matching refs:cluster

66     uint32_t cluster = finode->first_clus;  in __fat32_search_long_short()  local
75 … uint64_t sector = __fat32_calculate_LBA(fsbi->first_data_sector, fsbi->sec_per_clus, cluster); in __fat32_search_long_short()
283 cluster = fat32_read_FAT_entry(blk, fsbi, cluster); in __fat32_search_long_short()
285 if (cluster >= 0x0ffffff7) // 寻找完父目录的所有簇,都没有找到目标文件名 in __fat32_search_long_short()
302 sinfo->i_pos = __fat32_calculate_LBA(fsbi->first_data_sector, fsbi->sec_per_clus, cluster); in __fat32_search_long_short()
581 uint64_t cluster = finode->first_clus; in fat32_read() local
592 if (!cluster) in fat32_read()
597 cluster = fat32_read_FAT_entry(blk, fsbi, cluster); in fat32_read()
614 uint64_t sector = fsbi->first_data_sector + (cluster - 2) * fsbi->sec_per_clus; in fat32_read()
643 cluster = fat32_read_FAT_entry(blk, fsbi, cluster); in fat32_read()
644 } while (bytes_remain && (cluster < 0x0ffffff8) && cluster != 0); in fat32_read()
669 uint32_t cluster = finode->first_clus; in fat32_write() local
677 if (!cluster) // 起始簇号为0,说明是空文件 in fat32_write()
680 if (fat32_alloc_clusters(file_ptr->dEntry->dir_inode, &cluster, 1) != 0) in fat32_write()
687 cluster = fat32_read_FAT_entry(blk, fsbi, cluster); in fat32_write()
691 if (!cluster) in fat32_write()
706 sector = fsbi->first_data_sector + (cluster - 2) * fsbi->sec_per_clus; // 计算对应的扇区 in fat32_write()
752 next_clus = fat32_read_FAT_entry(blk, fsbi, cluster); in fat32_write()
764 cluster = next_clus; // 切换当前簇 in fat32_write()
1164 uint32_t cluster = finode->first_clus; in fat32_readdir() local
1172 cluster = fat32_read_FAT_entry(blk, fsbi, cluster); in fat32_readdir()
1173 if (cluster > 0x0ffffff7) // 文件结尾 in fat32_readdir()
1185 while (cluster <= 0x0ffffff7) // cluster在循环末尾更新(如果当前簇已经没有短目录项的话) in fat32_readdir()
1188 uint64_t sector = fsbi->first_data_sector + (cluster - 2) * fsbi->sec_per_clus; in fat32_readdir()
1323 cluster = fat32_read_FAT_entry(blk, fsbi, cluster); in fat32_readdir()