1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 09:07:35 +00:00
serenity/Kernel/FileSystem
Sergey Bugaev df66c28479 Kernel: Deemphasize inode identifiers
These APIs were clearly modeled after Ext2FS internals, and make perfect sense
in Ext2FS context. The new APIs are more generic, and map better to the
semantics exported to the userspace, where inode identifiers only appear in
stat() and readdir() output, but never in any input.

This will also hopefully reduce the potential for races (see commit c44b4d61f3).

Lastly, this makes it way more viable to implement a filesystem that only
synthesizes its inodes lazily when queried, and destroys them when they are no
longer in use. With inode identifiers being used to reference inodes, the only
choice for such a filesystem is to persist any inode it has given out the
identifier for, because it might be queried at any later time. With direct
references to inodes, the filesystem will know when the last reference is
dropped and the inode can be safely destroyed.
2020-06-25 15:49:04 +02: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
DevPtsFS.cpp Kernel: Deemphasize inode identifiers 2020-06-25 15:49:04 +02:00
DevPtsFS.h Kernel: Deemphasize inode identifiers 2020-06-25 15:49:04 +02:00
ext2_fs.h Meta: Remove some copyright headers added in error 2020-01-25 10:34:32 +01:00
ext2_types.h Meta: Add a script check the presence of "#pragma once" in header files 2020-05-29 07:59:45 +02:00
Ext2FileSystem.cpp Kernel: Deemphasize inode identifiers 2020-06-25 15:49:04 +02:00
Ext2FileSystem.h Kernel: Deemphasize inode identifiers 2020-06-25 15:49:04 +02:00
FIFO.cpp Kernel: Add explicit offset parameter to File::read etc 2020-04-10 11:59:30 +02:00
FIFO.h Kernel: Add explicit offset parameter to File::read etc 2020-04-10 11:59:30 +02:00
File.cpp Kernel: Allow File::close() to fail 2020-06-02 21:49:47 +02:00
File.h Kernel: Allow File::close() to fail 2020-06-02 21:49:47 +02:00
FileBackedFileSystem.cpp Kernel: Tweak FileBackedFS API to avoid intermediary copies 2020-05-19 11:07:35 +02:00
FileBackedFileSystem.h Kernel: Tweak FileBackedFS API to avoid intermediary copies 2020-05-19 11:07:35 +02:00
FileDescription.cpp Kernel: Use symbolic constants for file modes 2020-06-17 15:02:03 +02:00
FileDescription.h Kernel: Allow File::close() to fail 2020-06-02 21:49:47 +02:00
FileSystem.cpp Kernel: Make FS::block_size a size_t 2020-05-19 11:07:35 +02:00
FileSystem.h Kernel: Deemphasize inode identifiers 2020-06-25 15:49:04 +02:00
Inode.cpp Kernel: Plumb KResult through FileDescription::read_entire_file() implementation. 2020-05-26 10:15:40 +02:00
Inode.h Kernel: Deemphasize inode identifiers 2020-06-25 15:49:04 +02:00
InodeFile.cpp Kernel: Pass a Custody instead of Inode to VFS methods 2020-05-29 07:53:30 +02:00
InodeFile.h Kernel: Pass a FileDescription to File::chmod() and File::chown() 2020-05-29 07:53:30 +02:00
InodeIdentifier.h Kernel: Deemphasize inode identifiers 2020-06-25 15:49:04 +02:00
InodeMetadata.h Kernel: Use symbolic constants for file modes 2020-06-17 15:02:03 +02:00
InodeWatcher.cpp Kernel: Add explicit offset parameter to File::read etc 2020-04-10 11:59:30 +02:00
InodeWatcher.h Kernel: Add explicit offset parameter to File::read etc 2020-04-10 11:59:30 +02:00
ProcFS.cpp Kernel: Deemphasize inode identifiers 2020-06-25 15:49:04 +02:00
ProcFS.h Kernel: Deemphasize inode identifiers 2020-06-25 15:49:04 +02:00
TmpFS.cpp Kernel: Deemphasize inode identifiers 2020-06-25 15:49:04 +02:00
TmpFS.h Kernel: Deemphasize inode identifiers 2020-06-25 15:49:04 +02:00
VirtualFileSystem.cpp Kernel: Deemphasize inode identifiers 2020-06-25 15:49:04 +02:00
VirtualFileSystem.h Kernel+Userland: Support remounting filesystems :^) 2020-05-29 07:53:30 +02:00