Cybersecurity
DevOps Cloud (ADM)
IT Operations Cloud
Changing a depot from exclusive file locking to exclusive file non-locking and vice versa.
QUESTION:
How do you change a depot from exclusive file locking enabled to exclusive file locking disabled and vice versa?
ANSWER:
Execute 'accurev show depots -fx' to determine weather or not the depot has exclusive file locking enabled or disabled.
# accurev show depots -fx
<AcResponse
Command="show depots">
<Element
Number="2"
Name="depot name"
Slice="2"
exclusiveLocking="false"
case="insensitive"
locWidth="128">
</Element>
</AcResponse>
From the above output, look at the line:
exclusiveLocking="false"
If exclusiveLocking equals false, the depot exclusive file locking is not enabled.
To enable the file locking execute the command 'accurev chdepot -p <depot name> -ke':
# accurev chdepot -p <depot name> -ke
Changed exclusive locking for depot <depot name>.
# accurev show depots -fx
<AcResponse
Command="show depots">
<Element
Number="2"
Name="depot name"
Slice="2"
exclusiveLocking="true"
case="insensitive"
locWidth="128">
</Element>
</AcResponse>
The exclusiveLocking is now equal to true which indicates file locking is enabled.
To disable file locking, execute the command 'accurev chdepot -p <depot name> -kd'
# accurev chdepot -p <depot name> -kd
Changed exclusive locking for depot <depot name> .
# accurev show depots -fx
<AcResponse
Command="show depots">
<Element
Number="2"
Name="depot name"
Slice="2"
exclusiveLocking="false"
case="insensitive"
locWidth="128">
</Element>
</AcResponse>
For more information contact AccuRev Support