title: Is stat's st_blksize measured in bits or bytes?
body: <p>I'm trying to find the block size on my machine using these lines:</p>
  <pre><code>struct stat fi;
  stat(&quot;/tmp&quot;, &amp;fi);
  BLOCK_SIZE = fi.st_blksize;
  </code></pre>
  <p>Does BLOCK_SIZE represent the amount of <strong>bytes</strong> or the amount of <strong>bits</strong> in a single block?</p>
  <p>The documentation says:</p>
  <blockquote>
  <p>&quot;    blksize_t st_blksize; /* blocksize for file system I/O */ &quot;</p>
  </blockquote>