1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:37:35 +00:00

Move VFS sources into Kernel/.

This commit is contained in:
Andreas Kling 2019-01-23 05:13:17 +01:00
parent 19104570cc
commit 754037874c
49 changed files with 35 additions and 37 deletions

View file

@ -1,42 +0,0 @@
#pragma once
#include <AK/ByteBuffer.h>
#include <AK/Types.h>
class FS;
struct InodeMetadata;
class InodeIdentifier {
public:
InodeIdentifier() { }
InodeIdentifier(dword fileSystemID, dword inode)
: m_fsid(fileSystemID)
, m_index(inode)
{
}
bool is_valid() const { return m_fsid != 0 && m_index != 0; }
dword fsid() const { return m_fsid; }
dword index() const { return m_index; }
FS* fs();
const FS* fs() const;
bool operator==(const InodeIdentifier& other) const
{
return m_fsid == other.m_fsid && m_index == other.m_index;
}
bool operator!=(const InodeIdentifier& other) const
{
return m_fsid != other.m_fsid || m_index != other.m_index;
}
bool is_root_inode() const;
private:
dword m_fsid { 0 };
dword m_index { 0 };
};