partitions/ibm.c
PATCH 1/1 partitions/ibm.c
Andries, others,
Thanks for hacking through the code of fs/partitions/ibm.c. Your patch does not work at all because you are relying on the data in the part component of the hd structure, which does not hold the geometry data of the disk but the data of the partitions on that disk. Besides that, exactly these data are to be set up by the code in fs/partitions/ibm.c.
The geometry data is stored in the device driver. As in oposition to the partition schemes the device drivercan be a loadable module, fs/partitions.c should not at all directly call or use symbols from the device driver.
My preferred solution would be having partition schemes as loadable modules, too. Maybe I'll find some time to post the approriate patch on this list soon...
Regards,
Holger Smolinski
IBM Germany
Linux/390 Kernel Development
Schönaicher Str.220, D-71032 Böblingen
Quoted 9 lines
Reading patch-2.4.2 I met a strange amount of crap in
partitions/ibm.c. It is as if the author does not know where the kernel keeps the starting offset of a partition, and simulates aHDIO_GETGEOioctl from user space. I think the following patch does the same and removes a lot of cruft. (Warning: (i) untested, uncompiled; (ii) pasted from another window - tabs will have become spaces.)Andries