[Rear-users] SF.net SVN: rear:[471] trunk/usr/share/rear/dr/GNU/Linux/21_describe_md.sh

schlomoschapiro at users.sourceforge.net schlomoschapiro at users.sourceforge.net
Fri May 20 07:27:48 CEST 2011


Revision: 471
          http://rear.svn.sourceforge.net/rear/?rev=471&view=rev
Author:   schlomoschapiro
Date:     2011-05-20 05:27:48 +0000 (Fri, 20 May 2011)

Log Message:
-----------
! workaround for nasty mdadm bug

Modified Paths:
--------------
    trunk/usr/share/rear/dr/GNU/Linux/21_describe_md.sh

Modified: trunk/usr/share/rear/dr/GNU/Linux/21_describe_md.sh
===================================================================
--- trunk/usr/share/rear/dr/GNU/Linux/21_describe_md.sh	2011-05-19 22:35:58 UTC (rev 470)
+++ trunk/usr/share/rear/dr/GNU/Linux/21_describe_md.sh	2011-05-20 05:27:48 UTC (rev 471)
@@ -60,6 +60,11 @@
 	for opt in $options ; do
 		key="${opt%%=*}"
 		val="${opt##*=}"
+		# work around some known mdadm bugs:
+		if test "$key" = metadata -a "$val" = 00.90 ; then
+			# mdadm gives us 00.90 but expects 0.90 back :-(
+			val=0.90
+		fi
 		# I don't remember what for we need the variable defined here
 		# So I take it out and wait who cries...
 		### Schlomo removed ### declare MD_OPTION_${key//-/_}="$val"


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rear-users mailing list