summaryrefslogtreecommitdiff
path: root/tests/t0400-loop-clobber-infloop.sh
diff options
context:
space:
mode:
authorBrian C. Lane <bcl@redhat.com>2023-03-03 14:35:22 -0800
committerBrian C. Lane <bcl@redhat.com>2023-03-17 16:12:41 -0700
commit3f6b723a7d610d98afb0c9d0cfefe4700712e4db (patch)
tree841634a8bff641892b636e49e0cae210abcdd8e0 /tests/t0400-loop-clobber-infloop.sh
parentd272bb5b5343fd288a204314654a7fbaea84528d (diff)
downloadparted-3f6b723a7d610d98afb0c9d0cfefe4700712e4db.tar.gz
parted: Fix ending sector location when using kibi IEC suffix
This fixes a bug when using KiB to specify the ending location of a partition. It was not subtracting 1s like it does with the other units because it was looking for a 'k' not a 'K'. This also fixes a quirk of the suffix checking code, it would check for matching case, but converting to the actual IEC value was case insensitive. This now uses common functions for the matching so that case doesn't matter. It also adds tests to check for the fix. The only change in behavior is that using KiB to specify the ending location of a partition will now correctly create the end 1s lower than the specified location like it does for MiB, GiB, etc.
Diffstat (limited to 'tests/t0400-loop-clobber-infloop.sh')
0 files changed, 0 insertions, 0 deletions