Re: amount of blocks on a device

David Woodhouse (
Fri, 22 May 1998 12:45:15 +0200

On Thu, 21 May 1998, Sieger Ralf AI wrote:

> How can I determine the amount of blocks on a given block device?

Presumably you do mean 'block device', not filesystem, as others seem to be

Try the BLKGETSIZE ioctl. I have no idea if it's documented anywhere but

---- ---- ----
David Woodhouse, Robinson College, CB3 9AN, England. (+44) 0976 658355
finger for PGP key.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to