From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xiao Yang Date: Wed, 12 Feb 2020 13:36:53 +0800 Subject: [LTP] test with aio02 is failing with safe_macros.c:223: BROK: aio02.c:130: open(file, 16961, 0644) failed: EINVAL (22) In-Reply-To: <588cc009-d46f-4070-7b14-ea81f8dc6b76@cn.fujitsu.com> References: <6e81635f-c202-9f41-6795-4d6f84290e7e@163.com> <588cc009-d46f-4070-7b14-ea81f8dc6b76@cn.fujitsu.com> Message-ID: <5E438EF5.1050800@cn.fujitsu.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it 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 >>> *Sent:* Tuesday, February 11, 2020 3:04 PM >>> *To:* Pankaj Vinadrao Joshi >>> *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] >> >> > > >