<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hi</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I fixed this problem by adding option "-b" and -"B"</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div>the command looks like this: /opt/ltp/runltp -b /dev/loop0 -B ext4 -s readv01<br>
</div>
<br>
<p style="margin-top:0;margin-bottom:0">Shawnx.<br>
</p>
<p></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Cyril Hrubis <chrubis@suse.cz><br>
<b>Sent:</b> Friday, February 16, 2018 7:13:17 AM<br>
<b>To:</b> Xiuzhe Xiao<br>
<b>Cc:</b> ltp@lists.linux.it<br>
<b>Subject:</b> Re: [LTP] No space left on device</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hi!<br>
> I met a problem when using LTP<br>
> Many tests failed because of "errno=ENOSPC(28): No space left on device"<br>
> Here is one of the example:<br>
> <br>
> <<<test_start>>><br>
> tag=readv01 stime=1518724492<br>
> cmdline="readv01"<br>
> contacts=""<br>
> analysis=exit<br>
> <<<test_output>>><br>
> incrementing stop<br>
> readv01     1  TBROK  :  safe_macros.c:440: readv01.c:113: write(6,0x30274,4294967295) failed: errno=ENOSPC(28): No space left on device<br>
> readv01     2  TBROK  :  safe_macros.c:440: Remaining cases broken<br>
> <<<execution_status>>><br>
> initiation_status="ok"<br>
> duration=0 termination_type=exited termination_id=2 corefile=no<br>
> cutime=0 cstime=1<br>
> <<<test_end>>><br>
> INFO: ltp-pan reported some tests FAIL<br>
> LTP Version: 20170116<br>
> ./runltp: line 973: cannot create temp file for here-document: No space left on device<br>
> <br>
> root@adzs-sc589-ezlite:/opt/ltp# df<br>
> Filesystem           1K-blocks      Used Available Use% Mounted on<br>
> /dev/root              7462604    555564   6504916   8% /<br>
> devtmpfs                110608         0    110608   0% /dev<br>
> tmpfs                   110688        40    110648   0% /run<br>
> tmpfs                   110688        52    110636   0% /var/volatile<br>
> <br>
> Notice I have plenty of space on my disk, and I also check "df -i". Inodes are free as well<br>
> Is anyone had this problem? Please give me a hint, I'll be appreciated<br>
<br>
I have never seen such failure.<br>
<br>
But if you look at the the actual error message it looks like something<br>
very wrong is happening there. The test is supposed to write 64 bytes to<br>
the temporary file but it looks like in your case it attempts to write<br>
4294967295 bytes, which is around 4GB if I'm counting correctly so it's<br>
no wonder it fails with ENOSPC.<br>
<br>
My guess is that the test is miscompiled somehow but that is just a wild<br>
guess.<br>
<br>
-- <br>
Cyril Hrubis<br>
chrubis@suse.cz<br>
</div>
</span></font></div>
This communication, including any attached documentation, is intended only for the person or entity to which it is addressed, and may contain confidential, personal, and/or privileged information. Any unauthorized disclosure, copying, or taking action on the
 contents is strictly prohibited. If you have received this message in error, please contact us immediately so we may correct our records. Please then delete or destroy the original transmission and any subsequent reply. Thank you.
</body>
</html>