<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hello,</div><div><br></div><div>Before posting a bug on <a href="http://dev.opennebula.org">dev.opennebula.org</a>, I submit you some corrections I made to the transfer manager scripts to have the mkimage script working on vmware.</div><div>Let me know.</div><div><br></div><div><div>--- /usr/lib/one/sh/scripts_common.sh   2012-07-16 07:58:15.873452099 +0200</div><div>+++ /usr/lib/one/sh/scripts_common.sh.old       2012-07-16 07:56:39.548454580 +0200</div><div>@@ -251,12 +251,11 @@</div><div>             return 0</div><div>             ;;</div><div>         vmdk_*)</div><div>-            VMWARE_DISK_TYPE=`echo $FSTYPE|cut -d'_' -f 2`</div><div>-            echo "if which sudo > /dev/null; then \</div><div>-                       SUDO_CMD="sudo " \</div><div>-                 fi \</div><div>-                  $SUDO_CMD $VMKFSTOOLS -U $DST/disk.vmdk; \</div><div>-                  $SUDO_CMD $VMKFSTOOLS -c ${SIZE}M -d ${VMWARE_DISK_TYPE} $DST_PATH/disk.vmdk"</div><div>+            VMWARE_DISK_TYPE=`echo $FSTYPE|cut -d'_' -f 1`</div><div>+            echo "WHICH_SUDO=\$(which sudo) ; \</div><div>+                  [ ! -z \"\$WHICH_SUDO\" -a -f \"\$WHICH_SUDO\" ] && SUDO=\"sudo\" ; \</div><div>+                  $SUDO $VMKFSTOOLS -U $DST/disk.vmdk; \</div><div>+                  $SUDO $VMKFSTOOLS -c ${SIZE}M -d ${VMWARE_DISK_TYPE} $DST_PATH/disk.vmdk"</div><div>             return 0</div><div>             ;;</div><div>         *)</div></div><div><br></div><div><br></div><div>--- /var/lib/one/remotes/tm/ssh/mkimage 2012-07-16 07:48:36.285451366 +0200</div><div>+++ /var/lib/one/remotes/tm/ssh/mkimage.old     2012-07-16 07:52:26.531451982 +0200</div><div>@@ -55,8 +55,6 @@</div><div> </div><div> if ! echo "$FSTYPE"|grep -q ^vmdk; then</div><div>   CREATE_IMAGE="$DD if=/dev/zero of=$DST_PATH bs=1 count=1 seek=${SIZE}M"</div><div>-else</div><div>-  CREATE_IMAGE="mkdir -p $DST_PATH"</div><div> fi</div><div>  </div><div> MKSCRIPT=$(cat <<EOF</div><div><br></div>Cheers,<br><br><div apple-content-edited="true">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><font class="Apple-style-span" face="Calibri"><span class="Apple-style-span" style="font-family: Helvetica; "><font class="Apple-style-span" face="Calibri" size="3"><span class="Apple-style-span" style="font-size: 13px; ">Emmanuel Mathot</span></font></span><span class="Apple-style-span" style="font-family: Helvetica; "><span class="Apple-style-span" style="font-family: Times; "><br></span></span><span class="Apple-style-span" style="font-family: Helvetica; "><span class="Apple-style-span" style="font-family: Times; "><a href="http://www.terradue.com/"><span style="font-family: Calibri; color: rgb(0, 58, 161); text-decoration: none; ">www.terradue.com</span></a></span></span><span class="Apple-style-span" style="font-family: Helvetica; "><span class="Apple-style-span" style="font-family: Times; "><br></span></span><font class="Apple-style-span" face="Times"><img border="0" width="100" src="http://engine.terradue.com/logo_t2.png" alt="Terradue"></font></font></div></div></div></span></div>
</div>
<br></body></html>