From e6b1e2dea39707070da02cc0298e239897693e4c Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Mon, 11 Oct 2021 23:09:14 +0200 Subject: [PATCH] Fix typos Change-Id: I7432abc646acf3dce7a6b5965dab83d3732f09d2 --- glance_store/_drivers/cinder.py | 4 ++-- glance_store/_drivers/filesystem.py | 2 +- glance_store/_drivers/rbd.py | 4 ++-- glance_store/_drivers/swift/store.py | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/glance_store/_drivers/cinder.py b/glance_store/_drivers/cinder.py index 3ccfe299..337fdb74 100644 --- a/glance_store/_drivers/cinder.py +++ b/glance_store/_drivers/cinder.py @@ -382,7 +382,7 @@ Related options: cfg.BoolOpt('cinder_use_multipath', default=False, help=""" -Flag to identify mutipath is supported or not in the deployment. +Flag to identify multipath is supported or not in the deployment. Set it to False if multipath is not supported. @@ -532,7 +532,7 @@ class Store(glance_store.driver.Store): return True except Exception: # Glance calls this method to update legacy images URL - # If an exception occours due to image/volume is non-existent or + # If an exception occurs due to image/volume is non-existent or # any other reason, we return False (i.e. the image location URL # won't be updated) and it is glance's responsibility to handle # the case when the image failed to update diff --git a/glance_store/_drivers/filesystem.py b/glance_store/_drivers/filesystem.py index 20f5b87f..c9f9ec4e 100644 --- a/glance_store/_drivers/filesystem.py +++ b/glance_store/_drivers/filesystem.py @@ -176,7 +176,7 @@ This configuration option enable the feature of not really write null byte sequences on the filesystem, the holes who can appear will automatically be interpreted by the filesystem as null bytes, and do not really consume your storage. -Enabling this feature will also speed up image upload and save network trafic +Enabling this feature will also speed up image upload and save network traffic in addition to save space in the backend, as null bytes sequences are not sent over the network. diff --git a/glance_store/_drivers/rbd.py b/glance_store/_drivers/rbd.py index 49519904..b5431fc4 100644 --- a/glance_store/_drivers/rbd.py +++ b/glance_store/_drivers/rbd.py @@ -158,7 +158,7 @@ Enable or not thin provisioning in this backend. This configuration option enable the feature of not really write null byte sequences on the RBD backend, the holes who can appear will automatically be interpreted by Ceph as null bytes, and do not really consume your storage. -Enabling this feature will also speed up image upload and save network trafic +Enabling this feature will also speed up image upload and save network traffic in addition to save space in the backend, as null bytes sequences are not sent over the network. @@ -544,7 +544,7 @@ class Store(driver.Store): # Fix with encodeutils.safe_decode CAN BE REMOVED # after librados's fix will be stable. # - # More informations: + # More information: # https://bugs.launchpad.net/glance-store/+bug/1816721 # https://bugs.launchpad.net/cinder/+bug/1816468 # https://tracker.ceph.com/issues/38381 diff --git a/glance_store/_drivers/swift/store.py b/glance_store/_drivers/swift/store.py index baef35ba..d082d0ef 100644 --- a/glance_store/_drivers/swift/store.py +++ b/glance_store/_drivers/swift/store.py @@ -753,7 +753,7 @@ def Store(conf, backend=None): "work with swift+config. The options " "'swift_store_multi_tenant' and " "'swift_store_config_file' are mutually exclusive. " - "If you inted to use multi-tenant swift store, please " + "If you intend to use multi-tenant swift store, please " "make sure that you have not set a swift configuration " "file with the 'swift_store_config_file' option.") raise exceptions.BadStoreConfiguration(store_name="swift", @@ -933,7 +933,7 @@ class BaseStore(driver.Store): """ os_hash_value = gutils.get_hasher(hashing_algo, False) location = self.create_location(image_id, context=context) - # initialize a manager with re-auth if image need to be splitted + # initialize a manager with re-auth if image need to be split need_chunks = (image_size == 0) or ( image_size >= self.large_object_size) with self.get_manager(location, context,