[parted-devel] [PATCH 0/2] libparted: enhanced s390 DASD probing

Hendrik Brueckner brueckner at linux.vnet.ibm.com
Tue Sep 15 13:02:53 UTC 2015


The current fdasd code present in parted prevents DASDs attached
non-natively, for example, through virtblk, from being recognized
as such and, thus, prevent proper partitioning.

The following changes are implemented in this series:

1. Update parted with fdasd.c code from s390-tools to not rely on
   the DASD specific ioctl's anymore.

2. Adapt the parted code to be able to handle disks in DASD format
   irrespective of the used block device driver.

3. Add protection against messing up non-DASD block devices through
   better error checking.


Viktor Mihajlovski (2):
  fdasd: geometry handling updated from upstream s390-tools
  dasd: enhance device probing

 include/parted/device.in.h |    2 +
 include/parted/fdasd.in.h  |    4 +-
 libparted/arch/linux.c     |    8 ++-
 libparted/device.c         |   32 ++++++++-
 libparted/labels/dasd.c    |   18 ++---
 libparted/labels/fdasd.c   |  165 ++++++++++++++++++++++++++++++-------------
 6 files changed, 162 insertions(+), 67 deletions(-)




More information about the parted-devel mailing list