lkml.org 
[lkml]   [1998]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: amount of blocks on a device
Sieger Ralf AI wrote:
>
> How can I determine the amount of blocks on a given block device?

Speak of the devil. I was doing this yesterday. Have a look at vfs.h and
statvfs.h. Try the statvfs() and statfs() system calls; i.e

statfs("/home/.cshrc", &stats)

Check out the structures defined (struct statfs)

--
Cheers,
Alex.

Watch out, the NSA are everywhere. Your computer must be watched!

/\_/\ Legalise cannabis now!
( o.o ) Smoke some cannabis today!
> ^ < Peace, Love, Unity and Respect to all.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:0.031 / U:0.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site