From 0bebbf5a16ee77e0c4474ed7c92f5f547c2b416e Mon Sep 17 00:00:00 2001 From: Eric Harney Date: Tue, 9 Jun 2015 11:34:39 -0400 Subject: [PATCH] RemoteFS: Fix doc for locked_volume_id_operation Doctext should mention that this works on methods taking 'volume' or 'snapshot' arguments. Also reworded the method description to clarify a bit. Change-Id: Ib97746157dd6fd53c37fd4bde3d3de12a1727ec2 --- cinder/volume/drivers/remotefs.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cinder/volume/drivers/remotefs.py b/cinder/volume/drivers/remotefs.py index 109e9ca9b..554d39341 100644 --- a/cinder/volume/drivers/remotefs.py +++ b/cinder/volume/drivers/remotefs.py @@ -92,11 +92,10 @@ def locked_volume_id_operation(f, external=False): """Lock decorator for volume operations. Takes a named lock prior to executing the operation. The lock is named - with the id of the volume. This lock can then be used - by other operations to avoid operation conflicts on shared volumes. + with the id of the volume. This lock can be used by driver methods + to prevent conflicts with other operations modifying the same volume. - May be applied to methods of signature: - method(, volume, *, **) + May be applied to methods that take a 'volume' or 'snapshot' argument. """ def lvo_inner1(inst, *args, **kwargs): -- 2.45.2