Home
last modified time | relevance | path

Searched refs:file_size (Results 1 – 7 of 7) sorted by relevance

/DragonOS-0.1.3/kernel/src/filesystem/procfs/
Dprocfs.c167 inode->file_size = fdata->readlen; in procfs_open()
244 pos = file_ptr->dEntry->dir_inode->file_size + offset; in procfs_lseek()
252 if (pos < 0 || pos > file_ptr->dEntry->dir_inode->file_size) in procfs_lseek()
356 inode->file_size = 0; in procfs_create()
397 inode->file_size = 0; in procfs_mkdir()
/DragonOS-0.1.3/kernel/src/filesystem/fat32/
Dfat32.c331 p->file_size = sinfo.de->DIR_FileSize; in fat32_lookup()
333 p->blocks = (p->file_size + fsbi->bytes_per_clus - 1) / fsbi->bytes_per_sec; in fat32_lookup()
429 sb_ptr->root->dir_inode->file_size = 0; in fat32_read_superblock()
432 (sb_ptr->root->dir_inode->file_size + fsbi->bytes_per_clus - 1) / fsbi->bytes_per_sec; in fat32_read_superblock()
504 fdEntry->DIR_FileSize = inode->file_size; in fat32_write_inode()
600 if (*position + count > file_ptr->dEntry->dir_inode->file_size) in fat32_read()
601 count = file_ptr->dEntry->dir_inode->file_size - *position; in fat32_read()
771 if (*position > (file_ptr->dEntry->dir_inode->file_size)) in fat32_write()
773 file_ptr->dEntry->dir_inode->file_size = *position; in fat32_write()
807 pos = file_ptr->dEntry->dir_inode->file_size + offset; in fat32_lseek()
[all …]
Dfat_ent.c367 target->DIR_FileSize = dEntry->dir_inode->file_size; in fat32_fill_shortname()
/DragonOS-0.1.3/docs/kernel/filesystem/vfs/
Doverview.md152 uint64_t file_size; // 文件大小
164 **file_size**
/DragonOS-0.1.3/user/apps/shell/
Dcmd.c313 int file_size = lseek(fd, 0, SEEK_END); in shell_cmd_cat() local
319 while (file_size > 0) in shell_cmd_cat()
324 file_size -= l; in shell_cmd_cat()
/DragonOS-0.1.3/kernel/src/filesystem/vfs/
DVFS.h74 uint64_t file_size; // 文件大小 member
DVFS.c515 file_ptr->dEntry->dir_inode->file_size = 0; in do_open()
518 file_ptr->position = file_ptr->dEntry->dir_inode->file_size; in do_open()