Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/msdosfs When renaming a file, make sure apporpriate vnod...
details: https://anonhg.NetBSD.org/src/rev/d851853fa141
branches: trunk
changeset: 481545:d851853fa141
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Tue Feb 01 21:33:57 2000 +0000
description:
When renaming a file, make sure apporpriate vnode cache entry is
purged if a file system entry is removed. Fixes part of kern/8037.
Reviewed by: Wolfgang Solfrank
Tested by: jdolecek
diffstat:
sys/msdosfs/msdosfs_vnops.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r 149a7f1a24c3 -r d851853fa141 sys/msdosfs/msdosfs_vnops.c
--- a/sys/msdosfs/msdosfs_vnops.c Tue Feb 01 21:29:15 2000 +0000
+++ b/sys/msdosfs/msdosfs_vnops.c Tue Feb 01 21:33:57 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: msdosfs_vnops.c,v 1.90 2000/02/01 10:33:19 jdolecek Exp $ */
+/* $NetBSD: msdosfs_vnops.c,v 1.91 2000/02/01 21:33:57 jdolecek Exp $ */
/*-
* Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@@ -1055,13 +1055,13 @@
error = ENOTDIR;
goto bad;
}
- cache_purge(tdvp);
} else if (doingdirectory) {
error = EISDIR;
goto bad;
}
if ((error = removede(dp, xp)) != 0)
goto bad;
+ cache_purge(tvp);
vput(tvp);
xp = NULL;
}
@@ -1150,6 +1150,7 @@
VOP_UNLOCK(fvp, 0);
goto bad;
}
+ cache_purge(fvp);
if (!doingdirectory) {
error = pcbmap(dp, de_cluster(pmp, to_diroffset), 0,
&ip->de_dirclust, 0);
Home |
Main Index |
Thread Index |
Old Index