1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:57:44 +00:00
VirtualFileSystem -> VFS
VirtualFileSystem::Node -> Vnode
This commit is contained in:
Andreas Kling 2018-11-15 14:43:10 +01:00
parent c735c56e4c
commit 457a5df7d5
13 changed files with 143 additions and 137 deletions

View file

@ -136,7 +136,7 @@ ByteBuffer procfs$pid_exe(Process& process)
ProcessInspectionHandle handle(process);
auto inode = process.executable_inode();
ASSERT(inode);
return VirtualFileSystem::the().absolute_path(*inode).toByteBuffer();
return VFS::the().absolute_path(*inode).toByteBuffer();
}
ByteBuffer procfs$pid_cwd(Process& process)
@ -144,7 +144,7 @@ ByteBuffer procfs$pid_cwd(Process& process)
ProcessInspectionHandle handle(process);
auto inode = process.cwd_inode();
ASSERT(inode);
return VirtualFileSystem::the().absolute_path(*inode).toByteBuffer();
return VFS::the().absolute_path(*inode).toByteBuffer();
}
void ProcFileSystem::addProcess(Process& process)
@ -214,9 +214,9 @@ ByteBuffer procfs$regions()
ByteBuffer procfs$mounts()
{
InterruptDisabler disabler;
auto buffer = ByteBuffer::createUninitialized(VirtualFileSystem::the().mountCount() * 80);
auto buffer = ByteBuffer::createUninitialized(VFS::the().mountCount() * 80);
char* ptr = (char*)buffer.pointer();
VirtualFileSystem::the().forEachMount([&ptr] (auto& mount) {
VFS::the().forEachMount([&ptr] (auto& mount) {
auto& fs = mount.fileSystem();
ptr += ksprintf(ptr, "%s @ ", fs.className());
if (!mount.host().isValid())
@ -330,7 +330,7 @@ ByteBuffer procfs$summary()
ByteBuffer procfs$vnodes()
{
auto& vfs = VirtualFileSystem::the();
auto& vfs = VFS::the();
auto buffer = ByteBuffer::createUninitialized(vfs.m_maxNodeCount * 256);
char* ptr = (char*)buffer.pointer();
for (size_t i = 0; i < vfs.m_maxNodeCount; ++i) {