dcavalca / rpms / mdadm

Forked from rpms/mdadm 3 years ago
Clone

Blame SOURCES/0010-Fix-misspelling-of-alignment-and-geometry.patch

59ea72
From 3e684231ebe10c08e7cf23743d4516f707e605a2 Mon Sep 17 00:00:00 2001
59ea72
From: Michal Zylowski <michal.zylowski@intel.com>
59ea72
Date: Tue, 29 May 2018 15:46:40 +0200
59ea72
Subject: [RHEL7.5 PATCH 10/26] Fix misspelling of 'alignment' and 'geometry'
59ea72
59ea72
Set gemetry to geometry in error message about geometry validation failed.
59ea72
Fix misspelled 'alignment' word in imsm_component_size_alignment_check
59ea72
function.
59ea72
59ea72
Signed-off-by: Michal Zylowski <michal.zylowski@intel.com>
59ea72
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
59ea72
---
59ea72
 super-intel.c | 30 +++++++++++++++---------------
59ea72
 1 file changed, 15 insertions(+), 15 deletions(-)
59ea72
59ea72
diff --git a/super-intel.c b/super-intel.c
59ea72
index 520abf5..ce08af4 100644
59ea72
--- a/super-intel.c
59ea72
+++ b/super-intel.c
59ea72
@@ -3228,27 +3228,27 @@ int imsm_reshape_blocks_arrays_changes(struct intel_super *super)
59ea72
 	}
59ea72
 	return rv;
59ea72
 }
59ea72
-static unsigned long long imsm_component_size_aligment_check(int level,
59ea72
+static unsigned long long imsm_component_size_alignment_check(int level,
59ea72
 					      int chunk_size,
59ea72
 					      unsigned int sector_size,
59ea72
 					      unsigned long long component_size)
59ea72
 {
59ea72
-	unsigned int component_size_alligment;
59ea72
+	unsigned int component_size_alignment;
59ea72
 
59ea72
-	/* check component size aligment
59ea72
+	/* check component size alignment
59ea72
 	*/
59ea72
-	component_size_alligment = component_size % (chunk_size/sector_size);
59ea72
+	component_size_alignment = component_size % (chunk_size/sector_size);
59ea72
 
59ea72
-	dprintf("(Level: %i, chunk_size = %i, component_size = %llu), component_size_alligment = %u\n",
59ea72
+	dprintf("(Level: %i, chunk_size = %i, component_size = %llu), component_size_alignment = %u\n",
59ea72
 		level, chunk_size, component_size,
59ea72
-		component_size_alligment);
59ea72
+		component_size_alignment);
59ea72
 
59ea72
-	if (component_size_alligment && (level != 1) && (level != UnSet)) {
59ea72
-		dprintf("imsm: reported component size alligned from %llu ",
59ea72
+	if (component_size_alignment && (level != 1) && (level != UnSet)) {
59ea72
+		dprintf("imsm: reported component size aligned from %llu ",
59ea72
 			component_size);
59ea72
-		component_size -= component_size_alligment;
59ea72
+		component_size -= component_size_alignment;
59ea72
 		dprintf_cont("to %llu (%i).\n",
59ea72
-			component_size, component_size_alligment);
59ea72
+			component_size, component_size_alignment);
59ea72
 	}
59ea72
 
59ea72
 	return component_size;
59ea72
@@ -3351,7 +3351,7 @@ static void getinfo_super_imsm_volume(struct supertype *st, struct mdinfo *info,
59ea72
 
59ea72
 	info->data_offset	  = pba_of_lba0(map_to_analyse);
59ea72
 	info->component_size = calc_component_size(map, dev);
59ea72
-	info->component_size = imsm_component_size_aligment_check(
59ea72
+	info->component_size = imsm_component_size_alignment_check(
59ea72
 							info->array.level,
59ea72
 							info->array.chunk_size,
59ea72
 							super->sector_size,
59ea72
@@ -7089,7 +7089,7 @@ static int validate_geometry_imsm_volume(struct supertype *st, int level,
59ea72
 	mpb = super->anchor;
59ea72
 
59ea72
 	if (!validate_geometry_imsm_orom(super, level, layout, raiddisks, chunk, size, verbose)) {
59ea72
-		pr_err("RAID gemetry validation failed. Cannot proceed with the action(s).\n");
59ea72
+		pr_err("RAID geometry validation failed. Cannot proceed with the action(s).\n");
59ea72
 		return 0;
59ea72
 	}
59ea72
 	if (!dev) {
59ea72
@@ -11434,7 +11434,7 @@ enum imsm_reshape_type imsm_analyze_change(struct supertype *st,
59ea72
 	if (geo->size > 0 && geo->size != MAX_SIZE) {
59ea72
 		/* align component size
59ea72
 		 */
59ea72
-		geo->size = imsm_component_size_aligment_check(
59ea72
+		geo->size = imsm_component_size_alignment_check(
59ea72
 				    get_imsm_raid_level(dev->vol.map),
59ea72
 				    chunk * 1024, super->sector_size,
59ea72
 				    geo->size * 2);
59ea72
@@ -11468,7 +11468,7 @@ enum imsm_reshape_type imsm_analyze_change(struct supertype *st,
59ea72
 			max_size = free_size + current_size;
59ea72
 			/* align component size
59ea72
 			 */
59ea72
-			max_size = imsm_component_size_aligment_check(
59ea72
+			max_size = imsm_component_size_alignment_check(
59ea72
 					get_imsm_raid_level(dev->vol.map),
59ea72
 					chunk * 1024, super->sector_size,
59ea72
 					max_size);
59ea72
@@ -11970,7 +11970,7 @@ static int imsm_manage_reshape(
59ea72
 	buf_size = __le32_to_cpu(migr_rec->blocks_per_unit) * 512;
59ea72
 	/* extend  buffer size for parity disk */
59ea72
 	buf_size += __le32_to_cpu(migr_rec->dest_depth_per_unit) * 512;
59ea72
-	/* add space for stripe aligment */
59ea72
+	/* add space for stripe alignment */
59ea72
 	buf_size += old_data_stripe_length;
59ea72
 	if (posix_memalign((void **)&buf, MAX_SECTOR_SIZE, buf_size)) {
59ea72
 		dprintf("imsm: Cannot allocate checkpoint buffer\n");
59ea72
-- 
59ea72
2.7.4
59ea72