<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi all,</p>
    <p>I have run into an issue where a call to fstatfs for a file on a
      Lustre file system will occasionally return -1 with errno=11 ,
      EAGAIN  "Resource temporarily unavailable". Doing a man 2 fstatfs
      does not show EAGAIN as a potential errno for fstatfs.  Would this
      be a Lustre issue or kernel issue?</p>
    <p>The following is a debug print I put in immediately after the
      fstatfs call.<br>
    </p>
    <p><font face="monospace">-1=fstatfs(21)
name=/nobackupp17/jbauer2/iolreader.22013671/floorpan_1mm.T17167_50.OBJSCR
        11 Resource temporarily unavailable</font></p>
    <p>I fixed it by putting the call in a<font face="monospace"> do {
        ret=fstatfs() } while(</font><font face="monospace">ret==-1
        && errno==EAGAIN</font><font face="monospace">) </font>loop
      with a counter.<font face="monospace"><br>
      </font></p>
    <p>Thanks,</p>
    <p>John<font face="monospace"><br>
      </font></p>
  </body>
</html>