Followup to: <[EMAIL PROTECTED]>
By author: Olivier Galibert <[EMAIL PROTECTED]>
In newsgroup: linux.dev.kernel
>
> Read better. "would it be working or non-working". Non-working is ok
> if both write(/dev/hda) and write(/dev/hda1) are non-working, because
> it means a special mechanism is needed no matter what to write the
> boot sector. It's the "it works thru /dev/hda1, it doesn't thru
> /dev/hda" that is wrong.
>
It's somewhat unfortunate, but it's not that big of a deal. To
summarize, you can find the appropriate partition with looking at the
start field of HDIO_GETGEO; use /proc/partitions if you need to
actively look through the list of partitions for that device.
Yes, it's a bit hacky, but so is touching the mounted filesystem at
all.
In the 2.5 series we should fix this, though.
-hpa
--
<[EMAIL PROTECTED]> at work, <[EMAIL PROTECTED]> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/