title: statvfs system call fails with error Value too large for defined data type
body: <p>I have a Red Hat Enterprise Linux Server release 6.6 (2.6.32-504.el6.x86_64) installed on my server and have below partitions hierarchy.</p>
  
  <pre><code>Filesystem      Size  Used Avail Use% Mounted on
  /dev/sda2       7.9G  1.7G  5.9G  22% /
  tmpfs           5.4G  8.0K  5.4G   1% /dev/shm
  /dev/sda8        53G  1.4G   49G   3% /mysql/data
  /dev/sda6       7.9G  4.5G  3.1G  60% /usr/BWhttpd
  /dev/sda4        32G  989M   29G   4% /var
  /dev/sdb1        25T   37M   25T   1% /media1
  /dev/sdc1        25T   37M   25T   1% /media2
  /dev/sdd1        25T   37M   25T   1% /media3
  /dev/sde1        22T   21T  1.1T  95% /media4
  </code></pre>
  
  <p>I issue a <code>statvfs</code> call on each of the </p>
  
  <blockquote>
    <p>/mediax</p>
  </blockquote>
  
  <p>partition but the system call fails with error <code>Value too large for defined data type</code>. </p>
  
  <p>I was able to find the system call returned error <code>EOVERFLOW</code> but not sure which member of <code>struct statvfs</code> resulted in this. </p>
  
  <p>Does it have to do anything with the size of the /mediax partitions.</p>
  
  <blockquote>
    <p>Note: Partitions are of xfs file system type.</p>
  </blockquote>