Re: amount of blocks on a device

David Woodhouse (Dave@imladris.demon.co.uk)
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
assuming.

Try the BLKGETSIZE ioctl. I have no idea if it's documented anywhere but
linux/drivers/block/*.c

---- ---- ----
David Woodhouse, Robinson College, CB3 9AN, England. (+44) 0976 658355
Dave@imladris.demon.co.uk http://www.imladris.demon.co.uk
finger pgp@dwmw2.robinson.cam.ac.uk for PGP key.

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