mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:47:45 +00:00
LibCore: Keep the raw inode number value in DirectoryEntry
This will be used later on by other userspace programs that need it.
This commit is contained in:
parent
5efb91ec06
commit
93ef955597
2 changed files with 3 additions and 0 deletions
|
@ -68,6 +68,7 @@ DirectoryEntry DirectoryEntry::from_stat(DIR* d, dirent const& de)
|
|||
return DirectoryEntry {
|
||||
.type = directory_entry_type_from_stat(statbuf.st_mode),
|
||||
.name = de.d_name,
|
||||
.inode_number = de.d_ino,
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -77,6 +78,7 @@ DirectoryEntry DirectoryEntry::from_dirent(dirent const& de)
|
|||
return DirectoryEntry {
|
||||
.type = directory_entry_type_from_posix(de.d_type),
|
||||
.name = de.d_name,
|
||||
.inode_number = de.d_ino,
|
||||
};
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue