[ale] bizarre error

John Wells jb at sourceillustrated.com
Mon Apr 15 16:40:05 EDT 2002


Ok.  Reran cvs to get the error again and fill the disk back up.  Here's the
output:

[/home/jb/c]-)./statfs /
FS: /
Optimal Block Size: 4096
Total Blocks in FS: 1978557
Free Blocks: 250760
Used Blocks: 1727797
Blocks Avail. to non-root: 150254
Total INODES: 1005888
Free INODES: 752323
Used INODES: 253565

---------  Original message --------
From: Chris Fowler <cfowler at outpostsentinel.com>
To: ale at ale.org
To: Geoffrey <esoteric at 3times25.net>
CC: ale at ale.org
Subject: RE: [ale] bizarre error
Date: 04-16-02 00:24

> comiple this with

gcc -o statfs statfs.c

Run it and display output.

--- Cut Here ----
#include &lt;stdio.h&gt;
#include &lt;unistd.h&gt;
#include &lt;sys/vfs.h&gt;



int
main(int argc, char *argv[])
{
struct statfs buf;

if(argc !=2)
{
fprintf(stderr,&quot;statfs &lt;dir fs is mounted on&gt;n&quot;);
exit(1);
}

if(statfs(argv[1], &amp;buf) == -1)
{
perror(&quot;open fs&quot;);
exit(1);
}

printf(&quot;FS: %sn&quot;, argv[1]);
printf(&quot;Optimal Block Size:        %ldn&quot;, buf.f_bsize);
printf(&quot;Total Blocks in FS:        %ldn&quot;, buf.f_blocks);
printf(&quot;Free Blocks:               %ldn&quot;, buf.f_bfree);
printf(&quot;Used Blocks:               %ldn&quot;, buf.f_blocks -
buf.f_bfree);
printf(&quot;Blocks Avail. to non-root: %ldn&quot;, buf.f_bavail);
printf(&quot;Total INODES:              %ldn&quot;, buf.f_files);
printf(&quot;Free INODES:               %ldn&quot;, buf.f_ffree);
printf(&quot;Used INODES:               %ldn&quot;, buf.f_files -
buf.f_ffree);

return 0;
}

--- Cut Here ---

-----Original Message-----
From: Geoffrey [mailto:esoteric at 3times25.net]
To: ale at ale.org
Sent: Monday, April 15, 2002 8:14 PM
To: Chris Fowler
Subject: Re: [ale] bizarre error


Chris Fowler wrote:
&gt; I should have known taht one.  Maybe I've been programming too long.

Nah, some of those items slip by.  Afterall, your brain only holds so
much. :)  I hope there's not a 'programming too long' window cause I'd
sure would have fallen out of it by now. :)

&gt;
&gt; -----Original Message-----
&gt; From: Geoffrey [mailto:esoteric at 3times25.net]
&gt; Sent: Monday, April 15, 2002 8:01 PM
&gt; To: John Wells
&gt; Cc: Chris Fowler; ale at ale.org
&gt; Subject: Re: [ale] bizarre error
&gt;
&gt;
&gt;
&gt;&gt;---------  Original message --------
&gt;&gt;From: Chris Fowler &lt;cfowler at outpostsentinel.com&gt;
&gt;&gt;To: Geoffrey &lt;esoteric at 3times25.net&gt;, John Wells
&gt;&gt;
&gt; &lt;jb at sourceillustrated.com&gt;
&gt;
&gt;&gt;CC: ale at ale.org
&gt;&gt;Subject: RE: [ale] bizarre error
&gt;&gt;Date: 04-15-02 23:46
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;&gt;I never thought about that one.  Is there a way to check?
&gt;&gt;&gt;
&gt;
&gt; df -i
&gt;
&gt;
&gt; --
&gt; Until later: Geoffrey		esoteric at 3times25.net
&gt;
&gt; I didn't have to buy my radio from a specific company to listen
&gt; to FM, why doesn't that apply to the Internet (anymore...)?
&gt;
&gt;
&gt;
&gt;
&gt;


--
Until later: Geoffrey		esoteric at 3times25.net

I didn't have to buy my radio from a specific company to listen
to FM, why doesn't that apply to the Internet (anymore...)?




---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.


---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list