This is a more complicated fix incorporating the change in PR-#32 for issue #31
This assumes there was a reason for preferring reading the partnum from devname instead of dev - it falls back to dev if not resolvable, and falls back to 1 (like the old get_partnum()) if nothing works out.
This is a more complicated fix incorporating the change in PR-#32 for issue #31
This assumes there was a reason for preferring reading the partnum from
devname
instead ofdev
- it falls back to dev if not resolvable, and falls back to 1 (like the oldget_partnum()
) if nothing works out.