1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00:00
serenity/Kernel/FileSystem
Andreas Kling acebc9beaf Ext2FS: Use if-with-initializer a lot more
This pattern felt really cluttery:

auto result = something();
if (result.is_error())
    return result;

Since it leaves "result" lying around in the no-error case.
Let's use some C++17 if initializer expressions to improve this:

if (auto result = something(); result.is_error())
    return result;

Now the "result" goes out of scope if we don't need it anymore.
This is doubly nice since we're also free to reuse the "result"
name later in the same function.
2021-04-11 00:33:16 +02:00
..
AnonymousFile.cpp Kernel: Refactor storage stack with u64 as mmap offset 2021-03-19 09:15:19 +01:00
AnonymousFile.h Kernel: Refactor storage stack with u64 as mmap offset 2021-03-19 09:15:19 +01:00
BlockBasedFileSystem.cpp Kernel: Make FileDescription::seek() return KResultOr<off_t> 2021-03-19 10:44:25 +01:00
BlockBasedFileSystem.h Kernel: Make block-based file system code 64 bit ready 2021-03-19 09:15:19 +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: Return 0 to indicate EOF when reading from end-of-file of device 2021-03-15 09:06:41 +01:00
DevFS.h DevFS: Use strongly typed InodeIndex 2021-02-12 16:24:40 +01:00
DevPtsFS.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
DevPtsFS.h Kernel: Add distinct InodeIndex type 2021-02-12 10:26:29 +01:00
ext2_fs.h Meta: Split debug defines into multiple headers. 2021-01-26 21:20:00 +01:00
ext2_types.h Everywhere: Remove unnecessary whitespace at the end of some lines. 2021-03-08 09:20:53 +01:00
Ext2FileSystem.cpp Ext2FS: Use if-with-initializer a lot more 2021-04-11 00:33:16 +02:00
Ext2FileSystem.h Kernel: Add 64 bit file size support to Ext2FS 2021-03-17 23:22:42 +01:00
FIFO.cpp Kernel: Refactor storage stack with u64 as file operations offset 2021-03-17 23:22:42 +01:00
FIFO.h Kernel: Refactor storage stack with u64 as file operations offset 2021-03-17 23:22:42 +01:00
File.cpp Kernel: Remove unused FileBlockCondition::m_file. 2021-03-26 16:54:05 +01:00
File.h Kernel: Remove unused FileBlockCondition::m_file. 2021-03-26 16:54:05 +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: Make FileDescription::seek() return KResultOr<off_t> 2021-03-19 10:44:25 +01:00
FileDescription.h Kernel: Make FileDescription::seek() return KResultOr<off_t> 2021-03-19 10:44:25 +01:00
FileSystem.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
FileSystem.h Kernel: Add distinct InodeIndex type 2021-02-12 10:26:29 +01:00
Inode.cpp Kernel: Convert klog() => dmesgln() in filesystem code 2021-03-09 22:10:41 +01:00
Inode.h Kernel: Don't return -EFOO when return type is KResultOr<...> 2021-03-15 09:09:04 +01:00
InodeFile.cpp Kernel: Refactor storage stack with u64 as mmap offset 2021-03-19 09:15:19 +01:00
InodeFile.h Kernel: Refactor storage stack with u64 as mmap offset 2021-03-19 09:15:19 +01:00
InodeIdentifier.h Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
InodeMetadata.h Kernel: Add distinct InodeIndex type 2021-02-12 10:26:29 +01:00
InodeWatcher.cpp Kernel: Refactor storage stack with u64 as file operations offset 2021-03-17 23:22:42 +01:00
InodeWatcher.h Kernel: Refactor storage stack with u64 as file operations offset 2021-03-17 23:22:42 +01:00
Plan9FileSystem.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
Plan9FileSystem.h Kernel: Add distinct InodeIndex type 2021-02-12 10:26:29 +01:00
ProcFS.cpp Kernel+LibCore: Note whether a process is kernel mode in /proc/all 2021-04-06 17:55:47 +02:00
ProcFS.h Kernel: Use default con/de-structors 2021-02-28 18:09:12 +01:00
TmpFS.cpp Kernel: Stop trying to keep InodeVMObject in sync with disk changes 2021-03-04 15:42:51 +01:00
TmpFS.h Kernel: Add distinct InodeIndex type 2021-02-12 10:26:29 +01:00
VirtualFileSystem.cpp Kernel: Silence debug spam about chown and symlink during boot 2021-03-11 14:21:49 +01:00
VirtualFileSystem.h Kernel: Implement unveil() as a prefix-tree 2020-12-26 11:54:54 +01:00