Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ntfs ntfs_lookup()
details: https://anonhg.NetBSD.org/src/rev/0c96ef3dba00
branches: trunk
changeset: 477081:0c96ef3dba00
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sun Oct 10 14:19:54 1999 +0000
description:
ntfs_lookup()
* print just the relevant part of cnp->cn_nameptr in debug printf
* if ntfs_ntlookupfile() returned with error, print the returned
error if debugging
diffstat:
sys/ntfs/ntfs_vnops.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diffs (34 lines):
diff -r f4030f711ab2 -r 0c96ef3dba00 sys/ntfs/ntfs_vnops.c
--- a/sys/ntfs/ntfs_vnops.c Sun Oct 10 13:02:32 1999 +0000
+++ b/sys/ntfs/ntfs_vnops.c Sun Oct 10 14:19:54 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ntfs_vnops.c,v 1.18 1999/10/09 14:27:42 jdolecek Exp $ */
+/* $NetBSD: ntfs_vnops.c,v 1.19 1999/10/10 14:19:54 jdolecek Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -745,9 +745,9 @@
#if NTFS_DEBUG
int wantparent = cnp->cn_flags & (LOCKPARENT|WANTPARENT);
#endif
- dprintf(("ntfs_lookup: %s (%ld bytes) in %d, lp: %d, wp: %d \n",
- cnp->cn_nameptr, cnp->cn_namelen,
- dip->i_number,lockparent, wantparent));
+ dprintf(("ntfs_lookup: \"%.*s\" (%ld bytes) in %d, lp: %d, wp: %d \n",
+ (int)cnp->cn_namelen, cnp->cn_nameptr, cnp->cn_namelen,
+ dip->i_number, lockparent, wantparent));
error = VOP_ACCESS(dvp, VEXEC, cred, cnp->cn_proc);
if(error)
@@ -818,8 +818,10 @@
}
} else {
error = ntfs_ntlookupfile(ntmp, dvp, cnp, ap->a_vpp);
- if(error)
+ if (error) {
+ dprintf(("ntfs_ntlookupfile: returned %d\n", error));
return (error);
+ }
dprintf(("ntfs_lookup: found ino: %d\n",
VTONT(*ap->a_vpp)->i_number));
Home |
Main Index |
Thread Index |
Old Index