]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-viced-capability-writelock-20060801
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 1 Aug 2006 23:29:48 +0000 (23:29 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 1 Aug 2006 23:29:48 +0000 (23:29 +0000)
add write loc king capability

(cherry picked from commit 80e88d6a80fc3fc0d15650f20ea7fc3fece1a1e4)

src/fsint/common.xg
src/viced/afsfileprocs.c

index 42597f6c7a1f07e8b05a5464861b46d972e79365..3f057472e07e0c3c7af35b3b4640b64f99f0cd39 100644 (file)
@@ -179,6 +179,7 @@ typedef afs_int32 Capabilities<AFSCAPABILITIESMAX>;
 /* Viced Capability Flags */
 const VICED_CAPABILITY_ERRORTRANS      = 0x0001;
 const VICED_CAPABILITY_64BITFILES      = 0x0002;
+const VICED_CAPABILITY_WRITELOCKACL     = 0x0004;
 
 /* Cache Manager Capability Flags */
 const CLIENT_CAPABILITY_ERRORTRANS     = 0x0001;
index c26600d3863ae32f9b4abe2923c077f7f26e3a1d..003be6dae8f9751a27d6e6f518884def6ef1acc5 100644 (file)
@@ -6061,7 +6061,7 @@ SRXAFS_GetCapabilities(struct rx_call * acall, Capabilities * capabilities)
 
     dataBytes = 1 * sizeof(afs_int32);
     dataBuffP = (afs_int32 *) malloc(dataBytes);
-    dataBuffP[0] = VICED_CAPABILITY_ERRORTRANS;
+    dataBuffP[0] = VICED_CAPABILITY_ERRORTRANS | VICED_CAPABILITY_WRITELOCKACL;
 #if defined(AFS_64BIT_ENV) && defined(AFS_LARGEFILE_ENV)
     dataBuffP[0] |= VICED_CAPABILITY_64BITFILES;
 #endif