<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<div class="moz-cite-prefix">On 2/11/20 6:01 PM, Pankaj Vinadrao
Joshi wrote:<br>
</div>
<blockquote type="cite"
cite="mid:BMXPR01MB2999C5C6166A34812CFA3727EE180@BMXPR01MB2999.INDPRD01.PROD.OUTLOOK.COM">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
Hi sir,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
I am begginer can you tell how i can check if tmpfs is mounted
on /tmp in your enviroment?</div>
</blockquote>
<p>Hi,</p>
<p><br>
</p>
<p>You can use df/mount command to do check, as below:</p>
<p>-----------------------------------------------------------------<br>
</p>
<p>[root@Fedora-30-vm linux]# df -h | grep '/tmp'<br>
tmpfs 993M 4.0K 993M 1% /tmp</p>
<p>[root@Fedora-30-vm linux]# mount | grep '/tmp'<br>
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,seclabel)</p>
<p>------------------------------------------------------------------<br>
</p>
<blockquote type="cite"
cite="mid:BMXPR01MB2999C5C6166A34812CFA3727EE180@BMXPR01MB2999.INDPRD01.PROD.OUTLOOK.COM">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
Sir if you have two minutes of time can you elaborate it whats
its meaning?</div>
</blockquote>
<p>aio02 uses open(O_WRONLY | O_TRUNC | O_DIRECT | O_LARGEFILE |
O_CREAT) to</p>
<p>create test file in default /tmp directory and <strong></strong><strong></strong>O_DIRECT
flag may not be supported</p>
<p>by tmpfs so calling open() returns EINVAL.</p>
<p><br>
</p>
<p>Thanks,</p>
<p>Xiao Yang<br>
</p>
<blockquote type="cite"
cite="mid:BMXPR01MB2999C5C6166A34812CFA3727EE180@BMXPR01MB2999.INDPRD01.PROD.OUTLOOK.COM">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
Thank you <span id="😊">😊</span><br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
face="Calibri, sans-serif" color="#000000"><b>From:</b> Xiao
Yang <a class="moz-txt-link-rfc2396E" href="mailto:ice_yangxiao@163.com"><ice_yangxiao@163.com></a><br>
<b>Sent:</b> Tuesday, February 11, 2020 3:04 PM<br>
<b>To:</b> Pankaj Vinadrao Joshi
<a class="moz-txt-link-rfc2396E" href="mailto:Pankaj.VJ@exaleapsemi.com"><Pankaj.VJ@exaleapsemi.com></a><br>
<b>Subject:</b> Re: [LTP] test with aio02 is failing with
safe_macros.c:223: BROK: aio02.c:130: open(file, 16961, 0644)
failed: EINVAL (22)</font>
<div> </div>
</div>
<div style="background-color:#FFFFFF">
<p>Hi,</p>
<p><br>
</p>
<p>Could you check if tmpfs is mounted on /tmp in your
enviroment?</p>
<p>It seems that tmpfs cannot support O_DIRECT flag and creating
file with O_DIRECT in tmpfs triggers the error.</p>
<p>Perhaps, you can fix the error by mounting normal
filesystem(e.g. ext4/xfs) on /tmp for now.<br>
</p>
<p><br>
</p>
<p>Thanks,</p>
<p>Xiao Yang<br>
</p>
<div class="x_moz-cite-prefix">On 2/11/20 4:31 PM, Pankaj
Vinadrao Joshi wrote:<br>
</div>
<blockquote type="cite">
<style type="text/css" style="display:none">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;
font-size:12pt; color:rgb(0,0,0)">
Hi,<br>
i am running aio02 test on my RISC v machine,my testing is
getting failed with the message<br>
<strong>safe_macros.c:223: BROK: aio02.c:130:
open(file,16961,0644) failed: EINVAL (22)</strong><br>
</div>
<br>
<fieldset class="x_mimeAttachmentHeader"></fieldset>
</blockquote>
[EXT] </div>
</blockquote>
</body>
</html>