|
|
2c1b57 |
From b831b299e864224b389743d8a435d6629ee674e3 Mon Sep 17 00:00:00 2001
|
|
|
2c1b57 |
From: Jes Sorensen <jsorensen@fb.com>
|
|
|
2c1b57 |
Date: Tue, 16 May 2017 14:04:22 -0400
|
|
|
2c1b57 |
Subject: [RHEL7.5 PATCH 144/169] mdadm: Fix '==' broken formatting
|
|
|
2c1b57 |
|
|
|
2c1b57 |
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
|
|
|
2c1b57 |
---
|
|
|
2c1b57 |
Detail.c | 6 +++---
|
|
|
2c1b57 |
config.c | 4 ++--
|
|
|
2c1b57 |
managemon.c | 4 ++--
|
|
|
2c1b57 |
super-ddf.c | 16 ++++++++--------
|
|
|
2c1b57 |
super-intel.c | 2 +-
|
|
|
2c1b57 |
5 files changed, 16 insertions(+), 16 deletions(-)
|
|
|
2c1b57 |
|
|
|
2c1b57 |
diff --git a/Detail.c b/Detail.c
|
|
|
2c1b57 |
index ef2370c..bf881ff 100644
|
|
|
2c1b57 |
--- a/Detail.c
|
|
|
2c1b57 |
+++ b/Detail.c
|
|
|
2c1b57 |
@@ -714,9 +714,9 @@ This is pretty boring
|
|
|
2c1b57 |
if (disk.state & (1 << MD_DISK_JOURNAL))
|
|
|
2c1b57 |
printf(" journal");
|
|
|
2c1b57 |
if ((disk.state &
|
|
|
2c1b57 |
- ((1<
|
|
|
2c1b57 |
- |(1<
|
|
|
2c1b57 |
- == 0) {
|
|
|
2c1b57 |
+ ((1 << MD_DISK_ACTIVE) | (1 << MD_DISK_SYNC) |
|
|
|
2c1b57 |
+ (1 << MD_DISK_REMOVED) | (1 << MD_DISK_FAULTY) |
|
|
|
2c1b57 |
+ (1 << MD_DISK_JOURNAL))) == 0) {
|
|
|
2c1b57 |
printf(" spare");
|
|
|
2c1b57 |
if (disk.raid_disk < array.raid_disks &&
|
|
|
2c1b57 |
disk.raid_disk >= 0)
|
|
|
2c1b57 |
diff --git a/config.c b/config.c
|
|
|
2c1b57 |
index 9b008e3..48e0278 100644
|
|
|
2c1b57 |
--- a/config.c
|
|
|
2c1b57 |
+++ b/config.c
|
|
|
2c1b57 |
@@ -1118,8 +1118,8 @@ struct mddev_ident *conf_match(struct supertype *st,
|
|
|
2c1b57 |
match = NULL;
|
|
|
2c1b57 |
for (; array_list; array_list = array_list->next) {
|
|
|
2c1b57 |
if (array_list->uuid_set &&
|
|
|
2c1b57 |
- same_uuid(array_list->uuid, info->uuid, st->ss->swapuuid)
|
|
|
2c1b57 |
- == 0) {
|
|
|
2c1b57 |
+ same_uuid(array_list->uuid, info->uuid,
|
|
|
2c1b57 |
+ st->ss->swapuuid) == 0) {
|
|
|
2c1b57 |
if (verbose >= 2 && array_list->devname)
|
|
|
2c1b57 |
pr_err("UUID differs from %s.\n",
|
|
|
2c1b57 |
array_list->devname);
|
|
|
2c1b57 |
diff --git a/managemon.c b/managemon.c
|
|
|
2c1b57 |
index 0a33fc9..a8df666 100644
|
|
|
2c1b57 |
--- a/managemon.c
|
|
|
2c1b57 |
+++ b/managemon.c
|
|
|
2c1b57 |
@@ -580,8 +580,8 @@ static void manage_member(struct mdstat_ent *mdstat,
|
|
|
2c1b57 |
usleep(15*1000);
|
|
|
2c1b57 |
}
|
|
|
2c1b57 |
replace_array(container, a, newa);
|
|
|
2c1b57 |
- if (sysfs_set_str(&a->info, NULL, "sync_action", "recover")
|
|
|
2c1b57 |
- == 0)
|
|
|
2c1b57 |
+ if (sysfs_set_str(&a->info, NULL,
|
|
|
2c1b57 |
+ "sync_action", "recover") == 0)
|
|
|
2c1b57 |
newa->prev_action = recover;
|
|
|
2c1b57 |
dprintf("recovery started on %s\n", a->info.sys_name);
|
|
|
2c1b57 |
out:
|
|
|
2c1b57 |
diff --git a/super-ddf.c b/super-ddf.c
|
|
|
2c1b57 |
index 4da7c09..c233601 100644
|
|
|
2c1b57 |
--- a/super-ddf.c
|
|
|
2c1b57 |
+++ b/super-ddf.c
|
|
|
2c1b57 |
@@ -1883,8 +1883,8 @@ static struct vd_config *find_vdcr(struct ddf_super *ddf, unsigned int inst,
|
|
|
2c1b57 |
nsec = n / be16_to_cpu(conf->prim_elmnt_count);
|
|
|
2c1b57 |
if (conf->sec_elmnt_seq != nsec) {
|
|
|
2c1b57 |
for (ibvd = 1; ibvd < conf->sec_elmnt_count; ibvd++) {
|
|
|
2c1b57 |
- if (v->other_bvds[ibvd-1]->sec_elmnt_seq
|
|
|
2c1b57 |
- == nsec)
|
|
|
2c1b57 |
+ if (v->other_bvds[ibvd-1]->sec_elmnt_seq ==
|
|
|
2c1b57 |
+ nsec)
|
|
|
2c1b57 |
break;
|
|
|
2c1b57 |
}
|
|
|
2c1b57 |
if (ibvd == conf->sec_elmnt_count)
|
|
|
2c1b57 |
@@ -3814,13 +3814,13 @@ static struct mdinfo *container_content_ddf(struct supertype *st, char *subarray
|
|
|
2c1b57 |
unsigned int iphys;
|
|
|
2c1b57 |
int stt;
|
|
|
2c1b57 |
|
|
|
2c1b57 |
- if (be32_to_cpu(ddf->phys->entries[pd].refnum)
|
|
|
2c1b57 |
- == 0xFFFFFFFF)
|
|
|
2c1b57 |
+ if (be32_to_cpu(ddf->phys->entries[pd].refnum) ==
|
|
|
2c1b57 |
+ 0xffffffff)
|
|
|
2c1b57 |
continue;
|
|
|
2c1b57 |
|
|
|
2c1b57 |
stt = be16_to_cpu(ddf->phys->entries[pd].state);
|
|
|
2c1b57 |
- if ((stt & (DDF_Online|DDF_Failed|DDF_Rebuilding))
|
|
|
2c1b57 |
- != DDF_Online)
|
|
|
2c1b57 |
+ if ((stt & (DDF_Online|DDF_Failed|DDF_Rebuilding)) !=
|
|
|
2c1b57 |
+ DDF_Online)
|
|
|
2c1b57 |
continue;
|
|
|
2c1b57 |
|
|
|
2c1b57 |
i = get_pd_index_from_refnum(
|
|
|
2c1b57 |
@@ -4205,8 +4205,8 @@ static int get_bvd_state(const struct ddf_super *ddf,
|
|
|
2c1b57 |
if (pd < 0)
|
|
|
2c1b57 |
continue;
|
|
|
2c1b57 |
st = be16_to_cpu(ddf->phys->entries[pd].state);
|
|
|
2c1b57 |
- if ((st & (DDF_Online|DDF_Failed|DDF_Rebuilding))
|
|
|
2c1b57 |
- == DDF_Online) {
|
|
|
2c1b57 |
+ if ((st & (DDF_Online|DDF_Failed|DDF_Rebuilding)) ==
|
|
|
2c1b57 |
+ DDF_Online) {
|
|
|
2c1b57 |
working++;
|
|
|
2c1b57 |
avail[i] = 1;
|
|
|
2c1b57 |
}
|
|
|
2c1b57 |
diff --git a/super-intel.c b/super-intel.c
|
|
|
2c1b57 |
index 3d0a37c..51b7cc3 100644
|
|
|
2c1b57 |
--- a/super-intel.c
|
|
|
2c1b57 |
+++ b/super-intel.c
|
|
|
2c1b57 |
@@ -4023,7 +4023,7 @@ static void migrate(struct imsm_dev *dev, struct intel_super *super,
|
|
|
2c1b57 |
|
|
|
2c1b57 |
/* duplicate and then set the target end state in map[0] */
|
|
|
2c1b57 |
memcpy(dest, src, sizeof_imsm_map(src));
|
|
|
2c1b57 |
- if (migr_type == MIGR_REBUILD || migr_type == MIGR_GEN_MIGR) {
|
|
|
2c1b57 |
+ if (migr_type == MIGR_REBUILD || migr_type == MIGR_GEN_MIGR) {
|
|
|
2c1b57 |
__u32 ord;
|
|
|
2c1b57 |
int i;
|
|
|
2c1b57 |
|
|
|
2c1b57 |
--
|
|
|
2c1b57 |
2.7.4
|
|
|
2c1b57 |
|