diff options
author | Andreas Kling <kling@serenityos.org> | 2021-08-28 23:53:29 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-29 01:09:19 +0200 |
commit | 8ebf08b6c8b43b0473f90d1b6118fa3e36275989 (patch) | |
tree | 1320d39e082c4e661fd7e60b21b107fbb0a2e570 /Kernel/FileSystem/SysFSComponent.h | |
parent | b959c1bfa976eebfb208c0ea0f806fec49b5b0a2 (diff) | |
download | serenity-8ebf08b6c8b43b0473f90d1b6118fa3e36275989.zip |
Kernel: Make all ProcFS and SysFS files zero-sized
There is no value in exposing particular sizes for these files.
Diffstat (limited to 'Kernel/FileSystem/SysFSComponent.h')
-rw-r--r-- | Kernel/FileSystem/SysFSComponent.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Kernel/FileSystem/SysFSComponent.h b/Kernel/FileSystem/SysFSComponent.h index 3bbf6019c9..3e29138a5f 100644 --- a/Kernel/FileSystem/SysFSComponent.h +++ b/Kernel/FileSystem/SysFSComponent.h @@ -25,7 +25,6 @@ public: virtual KResult traverse_as_directory(unsigned, Function<bool(FileSystem::DirectoryEntryView const&)>) const { VERIFY_NOT_REACHED(); } virtual RefPtr<SysFSComponent> lookup(StringView) { VERIFY_NOT_REACHED(); }; virtual KResultOr<size_t> write_bytes(off_t, size_t, UserOrKernelBuffer const&, FileDescription*) { return EROFS; } - virtual size_t size() const { return 0; } virtual NonnullRefPtr<Inode> to_inode(SysFS const&) const; |