diff options
author | tjr <tjr@FreeBSD.org> | 2004-02-10 05:53:02 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2004-02-10 05:53:02 +0000 |
commit | 40b810244fbce5f951ac0c46dbf1181adb21a0b7 (patch) | |
tree | ba73a74265f497f6e197c646b862844380ff2f4b /sys/fs/smbfs/smbfs_node.h | |
parent | 72c7aa83c9ff6fcca227bada024389ad5063cce1 (diff) | |
download | FreeBSD-src-40b810244fbce5f951ac0c46dbf1181adb21a0b7.zip FreeBSD-src-40b810244fbce5f951ac0c46dbf1181adb21a0b7.tar.gz |
Fixes problems that occurred when a file was removed and a directory
created with the same name, and vice versa:
- Immediately recycle vnodes of files & directories that have been deleted
or renamed.
- When looking an entry in the VFS name cache or smbfs's private
cache, make sure the vnode type is consistent with the type of file
the server thinks it is, and re-create the vnode if it isn't.
The alternative to this is to recycle vnodes unconditionally when their
use count drops to 0, but this would make all the caching we do
mostly useless.
PR: 62342
MFC after: 2 weeks
Diffstat (limited to 'sys/fs/smbfs/smbfs_node.h')
-rw-r--r-- | sys/fs/smbfs/smbfs_node.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/fs/smbfs/smbfs_node.h b/sys/fs/smbfs/smbfs_node.h index 884831c..7a8d545 100644 --- a/sys/fs/smbfs/smbfs_node.h +++ b/sys/fs/smbfs/smbfs_node.h @@ -44,6 +44,7 @@ #define NREFPARENT 0x0010 /* node holds parent from recycling */ #define NFLUSHWIRE 0x1000 /* pending flush request */ #define NOPEN 0x2000 /* file is open */ +#define NGONE 0x4000 /* file has been removed/renamed */ struct smbfs_fctx; |