Re: How to read partition table

From: Andries Brouwer
Date: Mon Dec 22 2003 - 08:31:59 EST


On Mon, Dec 22, 2003 at 02:11:09PM +0530, Niraj Kumar wrote:

> Is there an ioctl command (or sys call) in the latest 2.6 kernel to read
> the complete partition table
> from user space?

The syscall is called read().

If you want to see it done, look at partx in util-linux.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/