[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#598957: NMU of mdadm for squeeze-proposed-upates



On Sat, Aug 27, 2011 at 02:55:50PM +0200, Philipp Kern wrote:
> On Mon, Jun 06, 2011 at 12:59:09PM +0100, Dominic Hargreaves wrote:
> > +1 for this patch to be applied in stable. Apart from the inconvenience
> > of being emailed by all your Debian systems using mdadm once a month,
> > sending people an email about a normal situation is likely to mean that
> > people miss the occasion when something isn't normal.
> 
> This is still unfixed in sid, though.

Indeed so.

In any case, since I have rolled this out on some servers I manage,
I thought I may as well confirm that a patch (attached) adopted from

<http://anonscm.debian.org/gitweb/?p=pkg-mdadm/mdadm.git;a=commit;h=219ef9a6c6a5e6bd1747bca4d13b72ae95ff9512>

applied on squeeze seems to work okay.

-- 
Dominic Hargreaves | http://www.larted.org.uk/~dom/
PGP key 5178E2A5 from the.earth.li (keyserver,web,email)
diff -urN mdadm-3.1.4/debian/checkarray mdadm-3.1.4.fixed//debian/checkarray
--- mdadm-3.1.4/debian/checkarray	2010-09-03 09:44:09.000000000 +0100
+++ mdadm-3.1.4.fixed//debian/checkarray	2011-08-10 17:08:34.000000000 +0100
@@ -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

Reply to: