Codebase list mdadm / 6878e3c
Ignore errors attempting to apply *nice to checkarray, it may be done already. (Closes: #791554) Dimitri John Ledkov 8 years ago
2 changed file(s) with 6 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
1212 [ Cyril B. ]
1313 * Copy AUTO lines from host into initrd, when updating initrd.
1414 (Closes: #785104)
15
16 [ Martin von Wittich ]
17 * Ignore errors attempting to apply *nice to checkarray, it may be
18 done already. (Closes: #791554)
1519
1620 -- Dimitri John Ledkov <xnox@debian.org> Sun, 08 Nov 2015 11:48:03 +0000
1721
204204 resync_pid=$(ps -ef | awk -v dev=$array 'BEGIN { pattern = "^\\[" dev "_resync]$" } $8 ~ pattern { print $2 }')
205205 if [ -n "$resync_pid" ]; then
206206 [ $quiet -lt 1 ] && echo "$PROGNAME: I: selecting $ionice I/O scheduling class and $renice niceness for resync of $array." >&2
207 ionice -p "$resync_pid" $ioarg || :
208 renice -n $renice -p "$resync_pid" 1>/dev/null || :
207 ionice -p "$resync_pid" $ioarg 2>/dev/null || :
208 renice -n $renice -p "$resync_pid" 1>/dev/null 2>&1 || :
209209 break
210210 fi
211211 sleep 1