mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:47:44 +00:00
Kernel: Use DistinctNumeric for filesystem ID's
This patch adds the FileSystemID type, which is a distinct u32. This prevents accidental conversion from arbitrary integers.
This commit is contained in:
parent
7c57961c61
commit
e08d213830
18 changed files with 36 additions and 35 deletions
|
@ -26,7 +26,7 @@ ErrorOr<FlatPtr> Process::do_statvfs(FileSystem const& fs, Custody const* custod
|
|||
kernelbuf.f_ffree = fs.free_inode_count();
|
||||
kernelbuf.f_favail = fs.free_inode_count(); // FIXME: same as f_bavail
|
||||
|
||||
kernelbuf.f_fsid = fs.fsid();
|
||||
kernelbuf.f_fsid = fs.fsid().value();
|
||||
|
||||
kernelbuf.f_namemax = 255;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue