* [LTP] test with aio02 is failing with safe_macros.c:223: BROK: aio02.c:130: open(file, 16961, 0644) failed: EINVAL (22)
@ 2020-02-11 8:31 Pankaj Vinadrao Joshi
[not found] ` <f6cf7d37-cf31-7448-0bea-035eb48f2f79@163.com>
0 siblings, 1 reply; 4+ messages in thread
From: Pankaj Vinadrao Joshi @ 2020-02-11 8:31 UTC (permalink / raw)
To: ltp
Hi,
i am running aio02 test on my RISC v machine,my testing is getting failed with the message
safe_macros.c:223: BROK: aio02.c:130: open(file,16961,0644) failed: EINVAL (22)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20200211/20f5d47b/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2020-02-10 17-54-25.png
Type: image/png
Size: 183398 bytes
Desc: Screenshot from 2020-02-10 17-54-25.png
URL: <http://lists.linux.it/pipermail/ltp/attachments/20200211/20f5d47b/attachment-0001.png>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [LTP] test with aio02 is failing with safe_macros.c:223: BROK: aio02.c:130: open(file, 16961, 0644) failed: EINVAL (22)
[not found] ` <BMXPR01MB2999C5C6166A34812CFA3727EE180@BMXPR01MB2999.INDPRD01.PROD.OUTLOOK.COM>
@ 2020-02-11 10:25 ` Xiao Yang
2020-02-11 10:55 ` Yang Xu
0 siblings, 1 reply; 4+ messages in thread
From: Xiao Yang @ 2020-02-11 10:25 UTC (permalink / raw)
To: ltp
On 2/11/20 6:01 PM, Pankaj Vinadrao Joshi wrote:
> Hi sir,
> I am begginer can you tell how i can? check if tmpfs is mounted on
> /tmp in your enviroment?
Hi,
You can use df/mount command to do check, as below:
-----------------------------------------------------------------
[root@Fedora-30-vm linux]# df -h | grep '/tmp'
tmpfs?????????? 993M? 4.0K? 993M?? 1% /tmp
[root@Fedora-30-vm linux]# mount | grep '/tmp'
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,seclabel)
------------------------------------------------------------------
>
> Sir if you have two minutes of time can you elaborate it whats its
> meaning?
aio02 uses open(O_WRONLY | O_TRUNC | O_DIRECT | O_LARGEFILE | O_CREAT) to
create test file in default /tmp directory and ****O_DIRECT flag may not
be supported
by tmpfs so calling open() returns EINVAL.
Thanks,
Xiao Yang
>
>
> Thank you ?
> ------------------------------------------------------------------------
> *From:* Xiao Yang <ice_yangxiao@163.com>
> *Sent:* Tuesday, February 11, 2020 3:04 PM
> *To:* Pankaj Vinadrao Joshi <Pankaj.VJ@exaleapsemi.com>
> *Subject:* Re: [LTP] test with aio02 is failing with
> safe_macros.c:223: BROK: aio02.c:130: open(file, 16961, 0644) failed:
> EINVAL (22)
>
> Hi,
>
>
> Could you check if tmpfs is mounted on /tmp in your enviroment?
>
> It seems that tmpfs cannot support O_DIRECT flag and creating file
> with O_DIRECT in tmpfs triggers the error.
>
> Perhaps, you can fix the error by mounting normal filesystem(e.g.
> ext4/xfs) on /tmp for now.
>
>
> Thanks,
>
> Xiao Yang
>
> On 2/11/20 4:31 PM, Pankaj Vinadrao Joshi wrote:
>> Hi,
>> i am running aio02 test on my RISC v machine,my testing is getting
>> failed with the message
>> *safe_macros.c:223: BROK: aio02.c:130: open(file,16961,0644) failed:
>> EINVAL (22)*
>>
> [EXT]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20200211/2192be1b/attachment.htm>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [LTP] test with aio02 is failing with safe_macros.c:223: BROK: aio02.c:130: open(file, 16961, 0644) failed: EINVAL (22)
2020-02-11 10:25 ` Xiao Yang
@ 2020-02-11 10:55 ` Yang Xu
2020-02-12 5:36 ` Xiao Yang
0 siblings, 1 reply; 4+ messages in thread
From: Yang Xu @ 2020-02-11 10:55 UTC (permalink / raw)
To: ltp
on 2020/02/11 18:25, Xiao Yang wrote:
>
> On 2/11/20 6:01 PM, Pankaj Vinadrao Joshi wrote:
>> Hi sir,
>> I am begginer can you tell how i can? check if tmpfs is mounted on
>> /tmp in your enviroment?
>
> Hi,
>
>
> You can use df/mount command to do check, as below:
>
> -----------------------------------------------------------------
>
> [root@Fedora-30-vm linux]# df -h | grep '/tmp'
> tmpfs?????????? 993M? 4.0K? 993M?? 1% /tmp
>
> [root@Fedora-30-vm linux]# mount | grep '/tmp'
> tmpfs on /tmp type tmpfs (rw,nosuid,nodev,seclabel)
>
> ------------------------------------------------------------------
>
>>
>> Sir if you have two minutes of time can you elaborate it whats its
>> meaning?
>
> aio02 uses open(O_WRONLY | O_TRUNC | O_DIRECT | O_LARGEFILE | O_CREAT) to
>
> create test file in default /tmp directory and ****O_DIRECT flag may not
> be supported
>
> by tmpfs so calling open() returns EINVAL.
>
Hi Xiao
I think we should add a check or use a valid filesystem to test in this
case.
Best Regards
Yang Xu
>
> Thanks,
>
> Xiao Yang
>
>>
>>
>> Thank you ?
>> ------------------------------------------------------------------------
>> *From:* Xiao Yang <ice_yangxiao@163.com>
>> *Sent:* Tuesday, February 11, 2020 3:04 PM
>> *To:* Pankaj Vinadrao Joshi <Pankaj.VJ@exaleapsemi.com>
>> *Subject:* Re: [LTP] test with aio02 is failing with
>> safe_macros.c:223: BROK: aio02.c:130: open(file, 16961, 0644) failed:
>> EINVAL (22)
>>
>> Hi,
>>
>>
>> Could you check if tmpfs is mounted on /tmp in your enviroment?
>>
>> It seems that tmpfs cannot support O_DIRECT flag and creating file
>> with O_DIRECT in tmpfs triggers the error.
>>
>> Perhaps, you can fix the error by mounting normal filesystem(e.g.
>> ext4/xfs) on /tmp for now.
>>
>>
>> Thanks,
>>
>> Xiao Yang
>>
>> On 2/11/20 4:31 PM, Pankaj Vinadrao Joshi wrote:
>>> Hi,
>>> i am running aio02 test on my RISC v machine,my testing is getting
>>> failed with the message
>>> *safe_macros.c:223: BROK: aio02.c:130: open(file,16961,0644) failed:
>>> EINVAL (22)*
>>>
>> [EXT]
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [LTP] test with aio02 is failing with safe_macros.c:223: BROK: aio02.c:130: open(file, 16961, 0644) failed: EINVAL (22)
2020-02-11 10:55 ` Yang Xu
@ 2020-02-12 5:36 ` Xiao Yang
0 siblings, 0 replies; 4+ messages in thread
From: Xiao Yang @ 2020-02-12 5:36 UTC (permalink / raw)
To: ltp
On 2020/2/11 18:55, Yang Xu wrote:
>
> on 2020/02/11 18:25, Xiao Yang wrote:
>>
>> On 2/11/20 6:01 PM, Pankaj Vinadrao Joshi wrote:
>>> Hi sir,
>>> I am begginer can you tell how i can check if tmpfs is mounted on
>>> /tmp in your enviroment?
>>
>> Hi,
>>
>>
>> You can use df/mount command to do check, as below:
>>
>> -----------------------------------------------------------------
>>
>> [root@Fedora-30-vm linux]# df -h | grep '/tmp'
>> tmpfs 993M 4.0K 993M 1% /tmp
>>
>> [root@Fedora-30-vm linux]# mount | grep '/tmp'
>> tmpfs on /tmp type tmpfs (rw,nosuid,nodev,seclabel)
>>
>> ------------------------------------------------------------------
>>
>>>
>>> Sir if you have two minutes of time can you elaborate it whats its
>>> meaning?
>>
>> aio02 uses open(O_WRONLY | O_TRUNC | O_DIRECT | O_LARGEFILE |
>> O_CREAT) to
>>
>> create test file in default /tmp directory and ****O_DIRECT flag may
>> not be supported
>>
>> by tmpfs so calling open() returns EINVAL.
>>
> Hi Xiao
> I think we should add a check or use a valid filesystem to test in
> this case.
Hi Xu,
Sorry for my late reply.
Sure, we need to fix the issue indeed.
Thanks,
Xiao Yang
>
> Best Regards
> Yang Xu
>>
>> Thanks,
>>
>> Xiao Yang
>>
>>>
>>>
>>> Thank you ?
>>> ------------------------------------------------------------------------
>>>
>>> *From:* Xiao Yang <ice_yangxiao@163.com>
>>> *Sent:* Tuesday, February 11, 2020 3:04 PM
>>> *To:* Pankaj Vinadrao Joshi <Pankaj.VJ@exaleapsemi.com>
>>> *Subject:* Re: [LTP] test with aio02 is failing with
>>> safe_macros.c:223: BROK: aio02.c:130: open(file, 16961, 0644)
>>> failed: EINVAL (22)
>>>
>>> Hi,
>>>
>>>
>>> Could you check if tmpfs is mounted on /tmp in your enviroment?
>>>
>>> It seems that tmpfs cannot support O_DIRECT flag and creating file
>>> with O_DIRECT in tmpfs triggers the error.
>>>
>>> Perhaps, you can fix the error by mounting normal filesystem(e.g.
>>> ext4/xfs) on /tmp for now.
>>>
>>>
>>> Thanks,
>>>
>>> Xiao Yang
>>>
>>> On 2/11/20 4:31 PM, Pankaj Vinadrao Joshi wrote:
>>>> Hi,
>>>> i am running aio02 test on my RISC v machine,my testing is getting
>>>> failed with the message
>>>> *safe_macros.c:223: BROK: aio02.c:130: open(file,16961,0644)
>>>> failed: EINVAL (22)*
>>>>
>>> [EXT]
>>
>>
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-02-12 5:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-11 8:31 [LTP] test with aio02 is failing with safe_macros.c:223: BROK: aio02.c:130: open(file, 16961, 0644) failed: EINVAL (22) Pankaj Vinadrao Joshi
[not found] ` <f6cf7d37-cf31-7448-0bea-035eb48f2f79@163.com>
[not found] ` <BMXPR01MB2999C5C6166A34812CFA3727EE180@BMXPR01MB2999.INDPRD01.PROD.OUTLOOK.COM>
2020-02-11 10:25 ` Xiao Yang
2020-02-11 10:55 ` Yang Xu
2020-02-12 5:36 ` Xiao Yang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.