Re: [newbie] Checking disk size from C

2004-05-22 Thread Mike Adolf
On Friday 21 May 2004 02:52 pm, Andrew Archibald wrote: On Thu, 2004-05-20 at 17:17, Mike Adolf wrote: - --- FilesystemSize Used Avail Use% Mounted on /dev/ide/host0/bus0/target1/lun0/part5

Re: [newbie] Checking disk size from C

2004-05-22 Thread Andrew Archibald
On Sat, 2004-05-22 at 13:38, Mike Adolf wrote: size of the second partition) BUT I FOR GOT TO RECOMPILE and was running the same a.out. Dah! Oops- that is embarrassing! :) Happens to us all sometimes... Thanks for you time. No problem at all- glad you found the problem! A.

Re: [newbie] Checking disk size from C

2004-05-21 Thread Andrew Archibald
On Thu, 2004-05-20 at 17:17, Mike Adolf wrote: FilesystemSize Used Avail Use% Mounted on /dev/ide/host0/bus0/target1/lun0/part5 5.8G 2.4G 3.2G 43% /

Re: [newbie] Checking disk size from C

2004-05-20 Thread Len Lawrence
On Wed, 19 May 2004 19:48:18 -0400 Mike Adolf [EMAIL PROTECTED] wrote: Greetings If I do 'df' if get /dev/ide/host0/bus0/target1/lun0/part7 49G 755M 48G 2% /home Says I have 48G free. If I run a C program calling statfs(/home, fs), I get: type of

Re: [newbie] Checking disk size from C

2004-05-20 Thread Frank
Errr This newbie thought that windows dosen't see other partitions not FAT formated or whatever. Whilst inside windows try MS-DOS and issue fdisk and follow the prompts. Not sure if this is what you are doing, just thought I'ld mention it. Regards Frank Big or small, a challenge

Re: [newbie] Checking disk size from C

2004-05-20 Thread Andrew Archibald
On Thu, 2004-05-20 at 07:57, Len Lawrence wrote: On Wed, 19 May 2004 19:48:18 -0400 Mike Adolf [EMAIL PROTECTED] wrote: The numbers don't add up. What am I missing? I'm running 10.0 CE. Yeah- your numbers are way off. Could we see the program which generated those results? printf(

[newbie] Checking disk size from C

2004-05-19 Thread Mike Adolf
Greetings If I do 'df' if get /dev/ide/host0/bus0/target1/lun0/part7 49G 755M 48G 2% /home Says I have 48G free. If I run a C program calling statfs(/home, fs), I get: type of filesystem = 61267 optimal transfer block size = 4096 total data blocks in file system=