Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:Update
resource-agents.8522
0028-Low-Raid1-remove-unnecessary-wait-flags-bs...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0028-Low-Raid1-remove-unnecessary-wait-flags-bsc-1077416.patch of Package resource-agents.8522
From 31c830c6f8c11f05456c0cc1e44a17e38000ec41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Koutn=C3=BD?= <mkoutny@suse.com> Date: Tue, 30 Jan 2018 12:04:22 +0100 Subject: [PATCH 28/29] Low: Raid1: remove unnecessary wait flags (bsc#1077416) As per Neil Brown <nfbrown@suse.com>: > In any case it is meaningless to wait for the array to become clean or > for resync to complete after it has already been stopped. Stopping > the array will *always* wait for it to be clean, but will not wait for > resync to complete - it will stop resync gracefully so that it > continues from where it was up to when the array is restarted. --- heartbeat/Raid1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/heartbeat/Raid1 b/heartbeat/Raid1 index 859eaa88..f7cb1eaf 100755 --- a/heartbeat/Raid1 +++ b/heartbeat/Raid1 @@ -246,7 +246,7 @@ mknod_raid1_stop() { rm -f $tmp_block_file ocf_log info "block device file $1 missing, creating one in order to stop the array" mknod $tmp_block_file b 9 $n - $MDADM --stop $tmp_block_file --config=$RAIDCONF --wait-clean -W + $MDADM --stop $tmp_block_file --config=$RAIDCONF rc=$? rm -f $tmp_block_file return $rc @@ -254,12 +254,12 @@ mknod_raid1_stop() { raid1_stop_one() { ocf_log info "Stopping array $1" if [ -b "$1" ]; then - $MDADM --stop $1 --config=$RAIDCONF --wait-clean -W && + $MDADM --stop $1 --config=$RAIDCONF && return else # newer mdadm releases can stop arrays when given the # basename; try that first - $MDADM --stop `basename $1` --config=$RAIDCONF --wait-clean -W && + $MDADM --stop `basename $1` --config=$RAIDCONF && return # otherwise create a block device file mknod_raid1_stop $1 -- 2.16.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor