I have been looking
at partitions in 2.5.38-1 :)
The ubd_add function no longer calls
The common layers don't seem to ever call ubd_open and never
try to read the
partition table by opening the device it will not try to open
it even when
the 0x6201 root device is directly specified.
know what Al Viro said is the correct method but it is not working
This may be a problem specific to ubd as the ubd driver really does
device opened before any attempts to use the block queue for read or
but other kinds of drivers will allow for unopened access to the
That is why the old ubd_revalidate had that somewhat silly
open/close pair. so that the block queue would not fail due to a
device. As I recall open/close mostly applied to mount/unmount and
partition read happens before that.