<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <pre wrap="">Red Hat bug #669333 - xfs_quota generates "XFS_GETQUOTA: No such process" errors
shows that if you do this for a filesystem w/o group quota enabled:

# xfs_quota -x -c ' report -h ' /xfsquota"

You'll get this output:

User quota on /xfsquota (/dev/vdb)
                        Blocks              
User ID      Used   Soft   Hard Warn/Grace   
---------- --------------------------------- 
root            0      0      0  00 [------]

XFS_GETQUOTA: No such process
XFS_GETQUOTA: No such process
...

because we're calling XFS_GETQUOTA for types which aren't enabled.

The below patch fixes it for me, just ignoring types that aren't
there.  Thanks to Arkadiusz Miskiewicz for pointing out the simpler
fix.  :)

Signed-off-by: Eric Sandeen <a class="moz-txt-link-rfc2396E" href="mailto:sandeen@redhat.com">&lt;sandeen@redhat.com&gt;</a>
---

</pre>
    <div class="moz-text-plain" wrap="true" style="font-family:
      -moz-fixed; font-size: 12px;" lang="x-western">
      <pre wrap="">diff --git a/quota/report.c b/quota/report.c
index 0e005c3..7d391c6 100644
--- a/quota/report.c
+++ b/quota/report.c
@@ -302,7 +302,7 @@ report_mount(
         int                count;
 
         if (xfsquotactl(XFS_GETQUOTA, dev, type, id, (void *)&amp;d) &lt; 0) {
-                if (errno != ENOENT &amp;&amp; errno != ENOSYS)
+                if (errno != ENOENT &amp;&amp; errno != ENOSYS &amp;&amp; errno != ESRCH)
                         perror("XFS_GETQUOTA");
                 return 0;
         }
</pre>
    </div>
    <br>
  </body>
</html>