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

(cherry picked from commit 80e88d6a80fc3fc0d15650f20ea7fc3fece1a1e4)

src/viced/afsfileprocs.c
src/viced/viced_prototypes.h

index 16e161bca42d9fa17b95daec0b8e832e1c7105dc..0b18714b098e0b48e9a84ec6ccb6f48ace2ad486 100644 (file)
@@ -6187,7 +6187,7 @@ SRXAFS_GetCapabilities(struct rx_call * acall, Capabilities * capabilities)
 
     dataBytes = 1 * sizeof(afs_int32);
     dataBuffP = (afs_int32 *) malloc(dataBytes);
-    dataBuffP[0] = CAPABILITY_ERRORTRANS;
+    dataBuffP[0] = CAPABILITY_ERRORTRANS | CAPABILITY_WRITELOCKACL;
     capabilities->Capabilities_len = dataBytes / sizeof(afs_int32);
     capabilities->Capabilities_val = dataBuffP;
 
index 17795b3127f68d56190debe52c1b4a9ce243150e..f60593f0b9e152c308b255bad204811c69559d91 100644 (file)
@@ -4,5 +4,5 @@ void init_sys_error_to_et(void);
 
 /* First 32 bits of capabilities */
 #define CAPABILITY_ERRORTRANS (1<<0)
-
+#define CAPABILITY_WRITELOCKACL (1<<2)
 #define CAPABILITY_BITS 1