]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_volume_client: perform snapshot operations in 17843/head
authorRamana Raja <rraja@redhat.com>
Wed, 20 Sep 2017 14:57:22 +0000 (20:27 +0530)
committerRamana Raja <rraja@redhat.com>
Wed, 20 Sep 2017 15:01:47 +0000 (20:31 +0530)
... client configured snap directory name, instead of in hard-coded
'.snap' directory.

Fixes: http://tracker.ceph.com/issues/21476
Signed-off-by: Ramana Raja <rraja@redhat.com>
src/pybind/ceph_volume_client.py

index 89722ec95e737470427dedf1546fc58e0c65b832..cd9605e919d7c2488049bc776d90d4d3e6b515d9 100644 (file)
@@ -31,7 +31,6 @@ class RadosError(Exception):
 
 
 RADOS_TIMEOUT = 10
-SNAP_DIR = ".snap"
 
 log = logging.getLogger(__name__)
 
@@ -1296,7 +1295,7 @@ class CephFSVolumeClient(object):
 
     def _snapshot_path(self, dir_path, snapshot_name):
         return os.path.join(
-            dir_path, SNAP_DIR, snapshot_name
+            dir_path, self.rados.conf_get('client_snapdir'), snapshot_name
         )
 
     def _snapshot_create(self, dir_path, snapshot_name):