Home
last modified time | relevance | path

Searched refs:cluster (Results 1 – 4 of 4) sorted by relevance

/DragonOS-0.1.3/kernel/src/filesystem/fat32/
Dfat_ent.c57 int cluster, idx; in fat32_alloc_clusters() local
62 cluster = finode->first_clus; in fat32_alloc_clusters()
72 cluster = tmp_clus; in fat32_alloc_clusters()
75 tmp_clus = fat32_read_FAT_entry(blk, fsbi, cluster); in fat32_alloc_clusters()
77 cluster = tmp_clus; in fat32_alloc_clusters()
87 fat32_write_FAT_entry(blk, fsbi, cluster, clusters[i]); in fat32_alloc_clusters()
88 cluster = clusters[i]; in fat32_alloc_clusters()
90 fat32_write_FAT_entry(blk, fsbi, cluster, 0x0ffffff8); in fat32_alloc_clusters()
112 int fat32_free_clusters(struct vfs_index_node_t *inode, int32_t cluster) in fat32_free_clusters() argument
126 uint32_t fat32_read_FAT_entry(struct block_device *blk, fat32_sb_info_t *fsbi, uint32_t cluster) in fat32_read_FAT_entry() argument
[all …]
Dfat_ent.h24 int fat32_free_clusters(struct vfs_index_node_t *inode, int32_t cluster);
34 uint32_t fat32_read_FAT_entry(struct block_device * blk, fat32_sb_info_t *fsbi, uint32_t cluster);
45 int fat32_write_FAT_entry(struct block_device * blk, fat32_sb_info_t *fsbi, uint32_t cluster, uint3…
87 …fill_shortname(struct vfs_dir_entry_t *dEntry, struct fat32_Directory_t *target, uint32_t cluster);
Dinternal.h12 …uint32_t __fat32_calculate_LBA(uint32_t first_data_sector, uint32_t sec_per_clus, uint32_t cluster) in __fat32_calculate_LBA() argument
14 return first_data_sector + (cluster - 2) * sec_per_clus; in __fat32_calculate_LBA()
Dfat32.c66 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()
[all …]