Fix gc by using the v1/v2 storage location helper everywhere
This commit is contained in:
parent
44d06b0c2e
commit
52125bbfed
4 changed files with 11 additions and 22 deletions
|
@ -18,22 +18,22 @@ class StoragePaths(object):
|
|||
|
||||
return tmpf, fn
|
||||
|
||||
def image_path(self, storage_uuid):
|
||||
def _image_path(self, storage_uuid):
|
||||
return '{0}/{1}/'.format(self.shared_images, storage_uuid)
|
||||
|
||||
def v1_image_layer_path(self, storage_uuid):
|
||||
base_path = self.image_path(storage_uuid)
|
||||
base_path = self._image_path(storage_uuid)
|
||||
return '{0}layer'.format(base_path)
|
||||
|
||||
def blob_path(self, digest_str):
|
||||
return content_path(digest_str)
|
||||
|
||||
def image_file_trie_path(self, storage_uuid):
|
||||
base_path = self.image_path(storage_uuid)
|
||||
base_path = self._image_path(storage_uuid)
|
||||
return '{0}files.trie'.format(base_path)
|
||||
|
||||
def image_file_diffs_path(self, storage_uuid):
|
||||
base_path = self.image_path(storage_uuid)
|
||||
base_path = self._image_path(storage_uuid)
|
||||
return '{0}diffs.json'.format(base_path)
|
||||
|
||||
|
||||
|
|
Reference in a new issue