Ignore errors attempting to apply *nice to checkarray, it may be done already. (Closes: #791554)
Dimitri John Ledkov
8 years ago
12 | 12 |
[ Cyril B. ]
|
13 | 13 |
* Copy AUTO lines from host into initrd, when updating initrd.
|
14 | 14 |
(Closes: #785104)
|
|
15 |
|
|
16 |
[ Martin von Wittich ]
|
|
17 |
* Ignore errors attempting to apply *nice to checkarray, it may be
|
|
18 |
done already. (Closes: #791554)
|
15 | 19 |
|
16 | 20 |
-- Dimitri John Ledkov <xnox@debian.org> Sun, 08 Nov 2015 11:48:03 +0000
|
17 | 21 |
|
204 | 204 |
resync_pid=$(ps -ef | awk -v dev=$array 'BEGIN { pattern = "^\\[" dev "_resync]$" } $8 ~ pattern { print $2 }')
|
205 | 205 |
if [ -n "$resync_pid" ]; then
|
206 | 206 |
[ $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 || :
|
209 | 209 |
break
|
210 | 210 |
fi
|
211 | 211 |
sleep 1
|