fat32: add fat_print_root
This commit is contained in:
parent
ceb0287109
commit
1490de0d9c
3 changed files with 16 additions and 1 deletions
11
fs/fat32.c
11
fs/fat32.c
|
|
@ -55,3 +55,14 @@ free_ret:
|
|||
kfree(ret);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void fat_print_root(struct fat32_fs *fs)
|
||||
{
|
||||
for(int i = 0; i < fs->bpb.root_entries; i++) {
|
||||
struct fat32_dirent *entry = &fs->root;
|
||||
if (entry->name[0] == 0)
|
||||
continue;
|
||||
|
||||
kprintf(LOG_WARN "%s\n", entry->name);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue