Re: block ioctl to read/write last sector

From: Andries.Brouwer@cwi.nl
Date: Tue Feb 13 2001 - 18:49:24 EST


    From michael_e_brown@dell.com Wed Feb 14 00:37:25 2001

> Look at the addpart utility in the util-linux package.
> It will allow you to add a partition disjoint from
> previously existing partitions.
> And since a partition can start on an odd sector,
> this should allow you to also read the last sector.
>
> Do I overlook something?

    Yes. The addpart utility just uses the block-layer ioctls to dynamically
    add and/or remove partitions. What this is doing is just adjusting the
    kernel's idea of what the current partition scheme is. This has _nothing_
    to do with actually reading or writing data from the disk.

But it changes the idea of odd and even.
A partition can start on an odd sector.

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



This archive was generated by hypermail 2b29 : Thu Feb 15 2001 - 21:00:23 EST