summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2020-01-12 10:00:56 +0100
committerAndreas Kling <awesomekling@gmail.com>2020-01-12 10:01:22 +0100
commitcb59f9e0f2fa9f7e5404b7b6ae0540dfb20bb6e5 (patch)
treefc9ff337a1e8280438a7ab2648388c8891e232fe /Kernel/FileSystem
parentca609ce5a3e33710ccef7d0d26b2f5725e54c4da (diff)
downloadserenity-cb59f9e0f2fa9f7e5404b7b6ae0540dfb20bb6e5.zip
Kernel: Put some VFS debug spam behind VFS_DEBUG
Diffstat (limited to 'Kernel/FileSystem')
-rw-r--r--Kernel/FileSystem/VirtualFileSystem.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Kernel/FileSystem/VirtualFileSystem.cpp b/Kernel/FileSystem/VirtualFileSystem.cpp
index 6ed65df5e4..3b7c52f11d 100644
--- a/Kernel/FileSystem/VirtualFileSystem.cpp
+++ b/Kernel/FileSystem/VirtualFileSystem.cpp
@@ -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)