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(): fix nasty interaction of the code wi...
details: https://anonhg.NetBSD.org/src/rev/406d105e73c8
branches: trunk
changeset: 476202:406d105e73c8
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Thu Sep 09 16:29:46 1999 +0000
description:
ntfs_lookup(): fix nasty interaction of the code with recent cache_lookup()
changes: cache_lookup() now returns -1 if not successful; for
the '.' case, 'error' haven't been cleared to 0,
so that ntfs_lookup() itself returned -1 , resulting to
nasty "leaf should be empty" panic early after
diffstat:
sys/ntfs/ntfs_vnops.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 339e55f3e873 -r 406d105e73c8 sys/ntfs/ntfs_vnops.c
--- a/sys/ntfs/ntfs_vnops.c Thu Sep 09 15:52:37 1999 +0000
+++ b/sys/ntfs/ntfs_vnops.c Thu Sep 09 16:29:46 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ntfs_vnops.c,v 1.12 1999/09/05 14:26:33 jdolecek Exp $ */
+/* $NetBSD: ntfs_vnops.c,v 1.13 1999/09/09 16:29:46 jdolecek Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -908,6 +908,7 @@
VREF(dvp);
*ap->a_vpp = dvp;
+ error = 0;
} else if (cnp->cn_flags & ISDOTDOT) {
struct ntvattr *vap;
Home |
Main Index |
Thread Index |
Old Index