Another merge proposal I have uses fdasd to get the block and track size
when partitioning a disk. But the wiping disk_handler can do can do
enough damage to stop fdasd working at all. Putting an empty vtoc onto
the disk allows fdasd to report the sizes when needed.
The functions that parse dasdinfo and dasdview output take
parameters strict and rawoutput that are only passed by tests.
This removes them and the tests.
remove support for calling get_path_to_storage_volume on a dasd action
there is no code path that will do this today, and this implementation
will not work with some changes I want to make to support dasds passed
via virtio.
clear-holders: fix identification of multipath partitions
identify_partition calls multipath.is_mpath_partition using at sysfs
path to the device but is_mpath_partition expects a /dev/XXX path.
This prevented clear-holders from identifying multipath partitions which
need to be handled differently than regular partitions (or disks).
debian/rules: drop PKG_VERSION and UPSTREAM_VERSION
The PKG_VERSION variable in debian/rules is not used and the command
generating it doesn't work, causing a 'Bad substitution' error at
every build. (The problem is with the '\#\#' escape.)
udevadm_info should use maxsplit=1 instead of maxsplit=2
In udevadm_info the below code is called to split output lines:
key, value = line.split('=', 2)
It can lead to unhandled exception if there are more than one
equal sign in the string as split will return array of three
or more elements. The correct way to get only two elements is
to use maxsplit=1:
key, value = line.split('=', 1)
vmtests/multipath-lvm: dont assume device-mapper block names
- Add comments in the early_command code to document what it is doing
- Use the /device/mapper/mpatha symlink to determine the correct
device-mapper device name when operating on it
- Add additional commands to capture more information for future
debugging issues with these tests.