mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 23:09:08 +00:00
Kernel: Put some VFS debug spam behind VFS_DEBUG
This commit is contained in:
parent
ca609ce5a3
commit
cb59f9e0f2
Notes:
sideshowbarker
2024-07-19 10:09:02 +09:00
Author: https://github.com/awesomekling
Commit: cb59f9e0f2
1 changed files with 4 additions and 0 deletions
|
@ -290,7 +290,9 @@ KResultOr<NonnullRefPtr<FileDescription>> VFS::create(StringView path, int optio
|
|||
if (!parent_inode.metadata().may_write(current->process()))
|
||||
return KResult(-EACCES);
|
||||
FileSystemPath p(path);
|
||||
#ifdef VFS_DEBUG
|
||||
dbg() << "VFS::create: '" << p.basename() << "' in " << parent_inode.identifier();
|
||||
#endif
|
||||
int error;
|
||||
|
||||
uid_t uid = owner.has_value() ? owner.value().uid : current->process().uid();
|
||||
|
@ -319,7 +321,9 @@ KResult VFS::mkdir(StringView path, mode_t mode, Custody& base)
|
|||
return KResult(-EACCES);
|
||||
|
||||
FileSystemPath p(path);
|
||||
#ifdef VFS_DEBUG
|
||||
dbg() << "VFS::mkdir: '" << p.basename() << "' in " << parent_inode.identifier();
|
||||
#endif
|
||||
int error;
|
||||
auto new_dir = parent_inode.fs().create_directory(parent_inode.identifier(), p.basename(), mode, current->process().uid(), current->process().gid(), error);
|
||||
if (new_dir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue