Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-2-0]: src/sys/miscfs/genfs Pull up revision 1.6 (requested by wrs...



details:   https://anonhg.NetBSD.org/src/rev/9b9ad1adfd89
branches:  netbsd-2-0
changeset: 561242:9b9ad1adfd89
user:      tron <tron%NetBSD.org@localhost>
date:      Sun May 30 15:09:46 2004 +0000

description:
Pull up revision 1.6 (requested by wrstuden in ticket #424):
Since VOP_UPCALL() has been a long time in coming, add this partial
fix for layered-file-removal. It will work for the case of accessing
and deleting a file through the layered file system. Accessing via
the layer and deleting on the underlying still won't work, nor will
accessing via complicated structures (like two umap layers over a
given file systems).
We still need VOP_UPCALL(), but this is better than things were before.
This patch has been discussed off & on for a while. This incarnation
was tested by hannken at netbsd dot org.

diffstat:

 sys/miscfs/genfs/layer.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r d3a6f5058f22 -r 9b9ad1adfd89 sys/miscfs/genfs/layer.h
--- a/sys/miscfs/genfs/layer.h  Sun May 30 15:09:41 2004 +0000
+++ b/sys/miscfs/genfs/layer.h  Sun May 30 15:09:46 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: layer.h,v 1.5 2003/08/07 16:32:35 agc Exp $    */
+/*     $NetBSD: layer.h,v 1.5.2.1 2004/05/30 15:09:46 tron Exp $       */
 
 /*
  * Copyright (c) 1999 National Aeronautics & Space Administration
@@ -116,6 +116,7 @@
 };
 
 #define        LAYERFS_RESFLAGS        0x00000fff      /* flags reserved for layerfs */
+#define        LAYERFS_REMOVED         0x00000001      /* Did a remove on this node */
 
 /*
  * The following macros handle upperfs-specific locking. They are needed



Home | Main Index | Thread Index | Old Index