mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 18:05:07 +00:00
Kernel: Misc tweaks
This commit is contained in:
parent
ec4902d1dd
commit
d395b93b15
3 changed files with 8 additions and 5 deletions
|
@ -70,6 +70,8 @@ InodeIdentifier VFS::root_inode_id() const
|
|||
|
||||
KResult VFS::mount(FS& file_system, Custody& mount_point, int flags)
|
||||
{
|
||||
LOCKER(m_lock);
|
||||
|
||||
auto& inode = mount_point.inode();
|
||||
dbg() << "VFS: Mounting " << file_system.class_name() << " at " << mount_point.absolute_path() << " (inode: " << inode.identifier() << ") with flags " << flags;
|
||||
// FIXME: check that this is not already a mount point
|
||||
|
@ -80,6 +82,8 @@ KResult VFS::mount(FS& file_system, Custody& mount_point, int flags)
|
|||
|
||||
KResult VFS::bind_mount(Custody& source, Custody& mount_point, int flags)
|
||||
{
|
||||
LOCKER(m_lock);
|
||||
|
||||
dbg() << "VFS: Bind-mounting " << source.absolute_path() << " at " << mount_point.absolute_path();
|
||||
// FIXME: check that this is not already a mount point
|
||||
Mount mount { source.inode(), mount_point, flags };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue