From cb59f9e0f2fa9f7e5404b7b6ae0540dfb20bb6e5 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 12 Jan 2020 10:00:56 +0100 Subject: Kernel: Put some VFS debug spam behind VFS_DEBUG --- Kernel/FileSystem/VirtualFileSystem.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Kernel/FileSystem') 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> 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) -- cgit v1.2.3