Re: [PATCH] [2.5.45] Extended /proc/partitions

Alexander Viro (viro@math.psu.edu)
Sat, 2 Nov 2002 12:40:26 -0500 (EST)


On Sat, 2 Nov 2002, Petr Baudis wrote:

> Hello,
>
> this patch (against 2.5.45) extends contents of /proc/partitions by starting
> offset of each partition. This can be terribly useful if you (or someone who
> then passed you the computer for a repair) by some mistake over-dd'd the
> partition table on a disk, but the system is still up. I know that you can also
> dig this out by some ioctl()s, but this can make life a lot easier for those
> who don't know C or can't dig the ioctl codes from the kernel source code.
>
> Note that it's possibly totally flawed (I don't know anything about this
> piece of code), but it looks to work ok.

It's already exported in files in driverfs. No need to duplicate in
/proc/partitions.

-
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/