diff options
author | peadar <peadar@FreeBSD.org> | 2004-04-14 23:23:55 +0000 |
---|---|---|
committer | peadar <peadar@FreeBSD.org> | 2004-04-14 23:23:55 +0000 |
commit | 5617193e919f277fdd23876b7881da9cc75b6a5b (patch) | |
tree | 4f111d425a38413a4e757a89c1dc965f103c6244 /sys/nfsclient/nfsnode.h | |
parent | 185be4df7ac473452a43a3b4c8d2ab01c7f626b4 (diff) | |
download | FreeBSD-src-5617193e919f277fdd23876b7881da9cc75b6a5b.zip FreeBSD-src-5617193e919f277fdd23876b7881da9cc75b6a5b.tar.gz |
Let the NFS client notice a file's size changing as a modification.
This avoids presenting invalid data to the client's applications
when the file is modified, and then extended within the window of
the resolution of the modifcation timestamp.
Reviewed By: iedowse
PR: kern/64091
Diffstat (limited to 'sys/nfsclient/nfsnode.h')
-rw-r--r-- | sys/nfsclient/nfsnode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/nfsclient/nfsnode.h b/sys/nfsclient/nfsnode.h index 0877c82..893927f 100644 --- a/sys/nfsclient/nfsnode.h +++ b/sys/nfsclient/nfsnode.h @@ -149,6 +149,7 @@ struct nfsnode { #define NCHG 0x0400 /* Special file times changed */ #define NCREATED 0x0800 /* Opened by nfs_create() */ #define NTRUNCATE 0x1000 /* Opened by nfs_setattr() */ +#define NSIZECHANGED 0x2000 /* File size has changed: need cache inval */ /* * Convert between nfsnode pointers and vnode pointers |