Kernel: Put some VFS debug spam behind VFS_DEBUG

This commit is contained in:
Andreas Kling 2020-01-12 10:00:56 +01:00
parent ca609ce5a3
commit cb59f9e0f2
Notes: sideshowbarker 2024-07-19 10:09:02 +09:00

View file

@ -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)