Bug#632797: Suppress information message about I/O scheduling class with -q

Jörg Sommer joerg at alea.gnuu.de
Tue Jul 5 11:53:59 UTC 2011


Package: mdadm
Version: 3.1.4-1+8efb9d1
Severity: normal
Tags: patch

Hi,

the message »I: selecting $ionice I/O scheduling class for resync of
$array.« missed the check if checkarray is run with -q.

--- /usr/share/mdadm/checkarray.old 2011-07-03 02:39:54.241949450 +0200
+++ /usr/share/mdadm/checkarray     2011-07-03 02:40:15.499572991 +0200
@@ -193,7 +193,7 @@
         wait=$((wait - 1))
         resync_pid=$(ps -ef | awk -v dev=$array 'BEGIN { pattern = "^\\[" dev "_resync]$" } $8 ~ pattern { print $2 }')
         if [ -n "$resync_pid" ]; then
-          echo "$PROGNAME: I: selecting $ionice I/O scheduling class for resync of $array." >&2
+          [ $quiet -lt 1 ] && echo "$PROGNAME: I: selecting $ionice I/O scheduling class for resync of $array." >&2
           ionice -p "$resync_pid" $arg
           break
         fi

Regards, Jörg

-- System Information:
Debian Release: unstable/experimental
  APT prefers unstable
  APT policy: (900, 'unstable'), (700, 'experimental')
Architecture: powerpc (ppc)

Kernel: Linux 3.0.0-rc3.ledtest-00165-gf8f44f0-dirty
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature http://en.wikipedia.org/wiki/OpenPGP
URL: <http://lists.alioth.debian.org/pipermail/pkg-mdadm-devel/attachments/20110705/b57a5aba/attachment.pgp>


More information about the pkg-mdadm-devel mailing list