kernel: Add the MOUNT_DEBUG flag
This commit is contained in:
parent
0b488c1232
commit
a1b92fcc3f
@ -10,4 +10,5 @@ target_compile_definitions(moon PRIVATE PCI_DEBUG)
|
||||
target_compile_definitions(moon PRIVATE EXT2_DEBUG)
|
||||
target_compile_definitions(moon PRIVATE DEVICE_REGISTRY_DEBUG)
|
||||
target_compile_definitions(moon PRIVATE FORK_DEBUG)
|
||||
target_compile_definitions(moon PRIVATE MOUNT_DEBUG)
|
||||
target_compile_options(moon PRIVATE -fsanitize=undefined)
|
||||
|
@ -233,7 +233,9 @@ namespace VFS
|
||||
auto parent_path = TRY(PathParser::dirname(path));
|
||||
auto child = TRY(PathParser::basename(path));
|
||||
|
||||
kinfoln("vfs: Mounting filesystem on target %s", path);
|
||||
#ifdef MOUNT_DEBUG
|
||||
kdbgln("vfs: Mounting filesystem on target %s", path);
|
||||
#endif
|
||||
|
||||
auto parent_inode = TRY(resolve_path(parent_path.chars(), auth, working_directory));
|
||||
|
||||
@ -245,6 +247,8 @@ namespace VFS
|
||||
|
||||
TRY(parent_inode->replace_entry(mount, child.chars()));
|
||||
|
||||
kinfoln("vfs: Successfully mounted filesystem on target %s", path);
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user