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