Browse Source
The current code enumerates the partitions and uses the index of this enumeration to query partition parameters rather than the actual partition number that is reported and expected by partx. This might not work in certain cases. Example: /dev/sda1 /dev/sda2 /dev/sda5 The partition number of the last partition is 5 but current code will use 3. This PR fixes this so that the actual number reported by partx is used for all operations rather than the enumerated index. ChangeLog: Fix error when partitions numbers are not sequential Signed-off-by: Purushotham Nayak <purunaya@cisco.com>revert-252-rm-only-tag-2.2.x
Purushotham Nayak
5 years ago
committed by
Lluis Campos
2 changed files with 11 additions and 6 deletions
Loading…
Reference in new issue