mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
This patch adds support for zipl targets over partitions of md-devices. With this patch it is possible to specify a zipl target over any partition of an md-device, so that all the physical disks participating in the mirrored setup will be prepared for IPL. Unlike a whole md-device which has major number 9, its partitions have major numbers 259 and the driver name is identified as 'blkext' in '/proc/devices'. Handle this case in set_driver_name(): call ioctl() to make sure that device is an md-partition. Drop re-definition of some macros. Signed-off-by: Eduard Shishkin <edward6@linux.ibm.com> Reviewed-by: Stefan Haberland <sth@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>