<div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10.5pt" ><div dir="ltr" >Adding Pradipta and Christy.</div>
<div dir="ltr" ><div class="socmaildefaultfont" dir="ltr" style="font-family:Arial;font-size:10.5pt" ><div class="socmaildefaultfont" dir="ltr" style="font-family:Arial;font-size:10.5pt" ><div dir="ltr" style="margin-top: 20px;" ><div style="font-size: 12pt; font-weight: bold; font-family: sans-serif; color: #7C7C5F;" >Harshal Patil</div>
<div style="font-size: 8pt; font-family: sans-serif; margin-top: 10px;" ><div><span style="font-weight: bold; color: #336699;" >E-mail: </span><a href="mailto:harshal.patil@in.ibm.com" style="color: #555" >harshal.patil@in.ibm.com</a></div></div></div></div></div></div>
<div dir="ltr" > </div>
<div dir="ltr" > </div>
<blockquote data-history-content-modified="1" data-history-expanded="1" dir="ltr" style="border-left:solid #aaaaaa 2px; margin-left:5px; padding-left:5px; direction:ltr; margin-right:0px" >----- Original message -----<br>From: Harshal Patil/India/IBM<br>To: linuxppc-dev@lists.ozlabs.org<br>Cc: Sudipto Ghosh/India/IBM@IBMIN<br>Subject: ioctl structs differ from x86_64?<br>Date: Tue, Mar 14, 2017 4:07 PM<br> 
<div dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10.5pt" ><div dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10.5pt" ><div dir="ltr" >Hello,</div>
<div dir="ltr" > </div>
<div dir="ltr" >I am looking into a bug, <a href="https://bugzilla.linux.ibm.com/show_bug.cgi?id=152493" target="_blank" >https://bugzilla.linux.ibm.com/show_bug.cgi?id=152493</a> ( external mirror is at, <a href="https://github.com/opencontainers/runc/issues/1364" target="_blank" >https://github.com/opencontainers/runc/issues/1364</a>) </div>
<div dir="ltr" > </div>
<div dir="ltr" >Recently in runc code, they added this code <a href="https://github.com/opencontainers/runc/commit/eea28f480db435dbef4a275de9776b9934818b8c#diff-5f5c07d0cab3ce2086437d3d43c0d25fR155" target="_blank" >https://github.com/opencontainers/runc/commit/eea28f480db435dbef4a275de9776b9934818b8c#diff-5f5c07d0cab3ce2086437d3d43c0d25fR155</a>. As you can see they set -onlcr to get rid of \r (line no. 164). Golang, in which runc is written, doesn't have any bindings for ioctls.  This means you have to invoke C code directly (that's what they are doing there).</div>
<div dir="ltr" > </div>
<div dir="ltr" >Our guess is the ioctls in ppc64le differ than x86_64, and thats why the code which is clearing onclr bit (<a href="https://github.com/opencontainers/runc/commit/eea28f480db435dbef4a275de9776b9934818b8c#diff-5f5c07d0cab3ce2086437d3d43c0d25fR164" target="_blank" >https://github.com/opencontainers/runc/commit/eea28f480db435dbef4a275de9776b9934818b8c#diff-5f5c07d0cab3ce2086437d3d43c0d25fR164</a>) is failing on ppc64le but works fine on x86_64. </div>
<div dir="ltr" > </div>
<div dir="ltr" >Any pointers on the possible solution would be really helpful. </div>
<div dir="ltr" > </div>
<div dir="ltr" >Thanks,</div>
<div dir="ltr" ><div dir="ltr" style="font-family:Arial;font-size:10.5pt" ><div dir="ltr" style="font-family:Arial;font-size:10.5pt" ><div dir="ltr" style="margin-top: 20px;" ><div style="font-size: 12pt; font-weight: bold; font-family: sans-serif; color: #7C7C5F;" >Harshal Patil</div>
<div style="font-size: 8pt; font-family: sans-serif; margin-top: 10px;" ><div><span style="font-weight: bold; color: #336699;" >E-mail: </span><a href="mailto:harshal.patil@in.ibm.com" style="color: #555" target="_blank" >harshal.patil@in.ibm.com</a></div></div></div></div></div></div></div></div></blockquote>
<div dir="ltr" > </div></div><BR>