diff options
author | Andreas Kling <kling@serenityos.org> | 2021-11-18 15:11:31 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-18 21:11:30 +0100 |
commit | e08d213830f8459f0d0d20d56668d479479a444d (patch) | |
tree | b2380d13c7c7343d0c33fdc667e8ec3dfec5c41d /Kernel/Syscalls/statvfs.cpp | |
parent | 7c57961c61aada999bf1dbc871708546b4fe1ba9 (diff) | |
download | serenity-e08d213830f8459f0d0d20d56668d479479a444d.zip |
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.
Diffstat (limited to 'Kernel/Syscalls/statvfs.cpp')
-rw-r--r-- | Kernel/Syscalls/statvfs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/statvfs.cpp b/Kernel/Syscalls/statvfs.cpp index 3d8c8323fe..314f0afd94 100644 --- a/Kernel/Syscalls/statvfs.cpp +++ b/Kernel/Syscalls/statvfs.cpp @@ -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; |