From: Jeffrey Altman Date: Thu, 22 Dec 2011 01:45:19 +0000 (-0500) Subject: Windows: Define times in terms of AFS_ONE_SECOND X-Git-Tag: upstream/1.8.0_pre1^2~2919 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=f417dba69230c6b72882ca614a3a8c5691fe561c;p=packages%2Fo%2Fopenafs.git Windows: Define times in terms of AFS_ONE_SECOND The afs redirector defines the macro AFS_ONE_SECOND to indicate the number of 100ns units necessary to indicate one second of time. Use that definition when defining other time values. Also define AFS_ONE_MILLISECOND and AFS_ONE_MICROSECOND. Change-Id: Ie2a173b4037af61e9a1c5aa06129520c36d714bb Reviewed-on: http://gerrit.openafs.org/6391 Tested-by: BuildBot Reviewed-by: Peter Scott Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- diff --git a/src/WINNT/afsrdr/kernel/lib/Include/AFSDefines.h b/src/WINNT/afsrdr/kernel/lib/Include/AFSDefines.h index a8370ffcd..cc93a44a6 100644 --- a/src/WINNT/afsrdr/kernel/lib/Include/AFSDefines.h +++ b/src/WINNT/afsrdr/kernel/lib/Include/AFSDefines.h @@ -152,13 +152,21 @@ NTSTATUS #define AFS_OBJECT_ROOT_VOLUME 0x00000100 #define AFS_OBJECT_FLAGS_VERIFY_DATA 0x00000200 +// +// Define one second in terms of 100 nS units +// + +#define AFS_ONE_SECOND 10000000 +#define AFS_ONE_MILLISECOND 10000 +#define AFS_ONE_MICROSECOND 10 + // // Fcb lifetime in seconds // -#define AFS_OBJECT_LIFETIME 300000000 +#define AFS_OBJECT_LIFETIME 30 * AFS_ONE_SECOND -#define AFS_EXTENT_REQUEST_TIME 1200000000 +#define AFS_EXTENT_REQUEST_TIME 10 * AFS_ONE_SECOND // // How big to make the runs @@ -187,12 +195,6 @@ NTSTATUS #define CRC32_POLYNOMIAL 0xEDB88320L; -// -// Define one second in terms of 100 nS units -// - -#define AFS_ONE_SECOND 10000000 - #define AFS_SERVER_FLUSH_DELAY 30 #define AFS_SERVER_PURGE_DELAY 60 //