1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 09:17:34 +00:00
serenity/Kernel/FileSystem
Tom f98ca35b83 Kernel: Improve ProcFS behavior in low memory conditions
When ProcFS could no longer allocate KBuffer objects to serve calls to
read, it would just return 0, indicating EOF. This then triggered
parsing errors because code assumed it read the file.

Because read isn't supposed to return ENOMEM, change ProcFS to populate
the file data upon file open or seek to the beginning. This also means
that calls to open can now return ENOMEM if needed. This allows the
caller to either be able to successfully open the file and read it, or
fail to open it in the first place.
2021-01-03 22:12:19 +01:00
..
BlockBasedFileSystem.cpp Revert "Kernel: Convert read_block method to get a reference instead of pointer" 2020-12-29 00:06:52 +01:00
BlockBasedFileSystem.h Revert "Kernel: Convert read_block method to get a reference instead of pointer" 2020-12-29 00:06:52 +01:00
Custody.cpp Kernel: Support read-only filesystem mounts 2020-05-29 07:53:30 +02:00
Custody.h Kernel: Support read-only filesystem mounts 2020-05-29 07:53:30 +02:00
DevFS.cpp Kernel: Introduce a new partitioning subsystem 2020-12-27 23:07:44 +01:00
DevFS.h Kernel: Introduce the DevFS 2020-12-27 23:07:44 +01:00
DevPtsFS.cpp AK: Make RefPtr, NonnullRefPtr, WeakPtr thread safe 2020-11-10 19:11:52 +01:00
DevPtsFS.h Kernel: Make copy_to/from_user safe and remove unnecessary checks 2020-09-13 21:19:15 +02:00
ext2_fs.h Meta: Remove some copyright headers added in error 2020-01-25 10:34:32 +01:00
ext2_types.h Everywhere: Re-format with clang-format-11 2020-12-31 21:51:00 +01:00
Ext2FileSystem.cpp Kernel: Improve some low-memory situations with ext2 2021-01-01 23:43:44 +01:00
Ext2FileSystem.h Kernel: Improve some low-memory situations with ext2 2021-01-01 23:43:44 +01:00
FIFO.cpp Kernel: Improve ProcFS behavior in low memory conditions 2021-01-03 22:12:19 +01:00
FIFO.h Kernel: Improve ProcFS behavior in low memory conditions 2021-01-03 22:12:19 +01:00
File.cpp Kernel: Improve ProcFS behavior in low memory conditions 2021-01-03 22:12:19 +01:00
File.h Kernel: Improve ProcFS behavior in low memory conditions 2021-01-03 22:12:19 +01:00
FileBackedFileSystem.cpp Kernel: Split BlockBasedFileSystem off FileBackedFileSystem 2020-07-05 12:26:27 +02:00
FileBackedFileSystem.h Kernel: Split BlockBasedFileSystem off FileBackedFileSystem 2020-07-05 12:26:27 +02:00
FileDescription.cpp Kernel: Improve ProcFS behavior in low memory conditions 2021-01-03 22:12:19 +01:00
FileDescription.h Kernel: Improve ProcFS behavior in low memory conditions 2021-01-03 22:12:19 +01:00
FileSystem.cpp Kernel: Switch singletons to use new Singleton class 2020-08-25 09:48:48 +02:00
FileSystem.h Meta+Kernel: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
Inode.cpp Kernel: Sprinkle some lockers in Inode 2020-12-31 02:10:31 +01:00
Inode.h Kernel: Improve ProcFS behavior in low memory conditions 2021-01-03 22:12:19 +01:00
InodeFile.cpp Kernel: Pass "shared" flag to Region constructor 2021-01-02 16:57:31 +01:00
InodeFile.h Kernel: Make copy_to/from_user safe and remove unnecessary checks 2020-09-13 21:19:15 +02:00
InodeIdentifier.h Meta+Kernel: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
InodeMetadata.h Everywhere: Redundant inline specifier on constexpr functions (#3807) 2020-10-20 18:08:13 +02:00
InodeWatcher.cpp Kernel: Move InodeWatcher::Event into Kernel/API/InodeWatcherEvent 2020-12-14 23:05:53 +01:00
InodeWatcher.h Kernel: Move InodeWatcher::Event into Kernel/API/InodeWatcherEvent 2020-12-14 23:05:53 +01:00
Plan9FileSystem.cpp Everywhere: Re-format with clang-format-11 2020-12-31 21:51:00 +01:00
Plan9FileSystem.h Kernel: Move block condition evaluation out of the Scheduler 2020-11-30 13:17:02 +01:00
ProcFS.cpp Kernel: Improve ProcFS behavior in low memory conditions 2021-01-03 22:12:19 +01:00
ProcFS.h Kernel: Improve ProcFS behavior in low memory conditions 2021-01-03 22:12:19 +01:00
TmpFS.cpp TmpFS: Use fallible KBuffer API 2020-12-18 19:22:26 +01:00
TmpFS.h TmpFS: Use fallible KBuffer API 2020-12-18 19:22:26 +01:00
VirtualFileSystem.cpp Kernel: Improve ProcFS behavior in low memory conditions 2021-01-03 22:12:19 +01:00
VirtualFileSystem.h Kernel: Implement unveil() as a prefix-tree 2020-12-26 11:54:54 +01:00