Adding Pradipta and Christy.
Harshal Patil
 
 
----- Original message -----
From: Harshal Patil/India/IBM
To: linuxppc-dev@lists.ozlabs.org
Cc: Sudipto Ghosh/India/IBM@IBMIN
Subject: ioctl structs differ from x86_64?
Date: Tue, Mar 14, 2017 4:07 PM
 
Hello,
 
 
Recently in runc code, they added this code https://github.com/opencontainers/runc/commit/eea28f480db435dbef4a275de9776b9934818b8c#diff-5f5c07d0cab3ce2086437d3d43c0d25fR155. 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).
 
Our guess is the ioctls in ppc64le differ than x86_64, and thats why the code which is clearing onclr bit (https://github.com/opencontainers/runc/commit/eea28f480db435dbef4a275de9776b9934818b8c#diff-5f5c07d0cab3ce2086437d3d43c0d25fR164) is failing on ppc64le but works fine on x86_64. 
 
Any pointers on the possible solution would be really helpful. 
 
Thanks,
Harshal Patil
 

Reply via email to