<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr; font-family: Tahoma; color: rgb(0, 0, 0); font-size: 10pt;">
Dear GlusterFS users,<br>
<br>
We are trying to use some C programs that rely on direct I/O operations on files residing on a GlusterFS volume composed of ext4 bricks.<br>
<br>
It is our understanding that this should be possible if we specify the&nbsp;&nbsp;&nbsp;<span style="font-family: Courier New;">
</span><i style="font-family: Courier New;">direct-io-mode=enable</i>&nbsp;&nbsp;&nbsp; option when mounting the volume, but for some reason we get the following error message when calling the&nbsp;&nbsp;
<i style="font-family: Courier New;">open()</i>&nbsp;&nbsp; system call with the <i style="font-family: Courier New;">
O_DIRECT</i> flag:<i>&nbsp;&nbsp;&nbsp; &quot;Invalid arguments&quot;</i>.<br>
<br>
The same system call succeeds on the local file system.<br>
<br>
<br>
System info:<br>
<div style="margin-left: 40px;">CentOS 6.2<br>
GlusterFS 3.2.5<br>
</div>
<br>
gluster volume info:<br>
<blockquote><font size="2"><span style="font-family: Courier New;">Volume Name: rdmaVol</span><br style="font-family: Courier New;">
<span style="font-family: Courier New;">Type: Distribute</span><br style="font-family: Courier New;">
<span style="font-family: Courier New;">Status: Started</span><br style="font-family: Courier New;">
<span style="font-family: Courier New;">Number of Bricks: 2</span><br style="font-family: Courier New;">
<span style="font-family: Courier New;">Transport-type: rdma</span><br style="font-family: Courier New;">
<span style="font-family: Courier New;">Bricks:</span><br style="font-family: Courier New;">
<span style="font-family: Courier New;">Brick1: node01:/home/gfs</span><br style="font-family: Courier New;">
<span style="font-family: Courier New;">Brick2: node02:/home/gfs</span></font><br>
<br>
</blockquote>
mount command:<br>
<blockquote><font style="font-style: italic;" size="2"><span style="font-family: Courier New;">$ mount&nbsp; -t&nbsp; glusterfs&nbsp; -o&nbsp; direct-io-mode=enable&nbsp; node01:/rdmaVol&nbsp; /mnt/gfs</span></font><br>
<br>
</blockquote>
We would really appreciate your help and suggestions! Please let us know if you need any additional information.
</div>
</body>
</html>