git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Kernel/VFS - Better error reporting in open
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
vfs
/
open.c
diff --git
a/KernelLand/Kernel/vfs/open.c
b/KernelLand/Kernel/vfs/open.c
index
77e58f5
..
e5a206f
100644
(file)
--- a/
KernelLand/Kernel/vfs/open.c
+++ b/
KernelLand/Kernel/vfs/open.c
@@
-356,7
+356,7
@@
restart_parse:
}
if(iNestedLinks > MAX_NESTED_LINKS) {
}
if(iNestedLinks > MAX_NESTED_LINKS) {
- Log_Notice("VFS", "VFS_ParsePath - Nested link limit exceeded
"
);
+ Log_Notice("VFS", "VFS_ParsePath - Nested link limit exceeded
on '%.*s'", ofs, Path
);
errno = ENOENT;
goto _error;
}
errno = ENOENT;
goto _error;
}
@@
-391,7
+391,8
@@
restart_parse:
// Handle Non-Directories
if( !(curNode->Flags & VFS_FFLAG_DIRECTORY) )
{
// Handle Non-Directories
if( !(curNode->Flags & VFS_FFLAG_DIRECTORY) )
{
- Log_Warning("VFS", "VFS_ParsePath - Path segment is not a directory");
+ Log_Warning("VFS", "VFS_ParsePath - Path segment '%.*s' is not a directory (curNode{%p}->Flags = 0x%x)",
+ ofs+nextSlash, Path, curNode, curNode->Flags);
errno = ENOTDIR;
goto _error;
}
errno = ENOTDIR;
goto _error;
}
@@
-420,7
+421,7
@@
restart_parse:
// Check final finddir call
if( !curNode->Type || !curNode->Type->FindDir ) {
// Check final finddir call
if( !curNode->Type || !curNode->Type->FindDir ) {
- Log_Warning("VFS", "VFS_ParsePath - FindDir doesn't exist for
element of '%s'"
, Path);
+ Log_Warning("VFS", "VFS_ParsePath - FindDir doesn't exist for
leaf of '%s' (dir '%.*s')", Path, ofs
, Path);
errno = ENOENT;
goto _error;
}
errno = ENOENT;
goto _error;
}
UCC
git Repository :: git.ucc.asn.au