summaryrefslogtreecommitdiffstats
path: root/tests/ts/sfdisk
diff options
context:
space:
mode:
authorKarel Zak2014-10-09 14:08:59 +0200
committerKarel Zak2014-10-09 14:08:59 +0200
commit9368018ff0d484ceaeda02b200ee71627f4d4580 (patch)
treee37c4502f85cddb9b1a1184d3dc6b3ce57abe082 /tests/ts/sfdisk
parentlibfdisk: (dos) reset logical partition stuff after error (diff)
downloadkernel-qcow2-util-linux-9368018ff0d484ceaeda02b200ee71627f4d4580.tar.gz
kernel-qcow2-util-linux-9368018ff0d484ceaeda02b200ee71627f4d4580.tar.xz
kernel-qcow2-util-linux-9368018ff0d484ceaeda02b200ee71627f4d4580.zip
tests: test cazy sizes for sfdisk
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/sfdisk')
-rwxr-xr-xtests/ts/sfdisk/dos21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/ts/sfdisk/dos b/tests/ts/sfdisk/dos
index e4ea981af..63921e590 100755
--- a/tests/ts/sfdisk/dos
+++ b/tests/ts/sfdisk/dos
@@ -88,6 +88,27 @@ $TS_CMD_SFDISK --unit S --dump ${TS_DEVICE} >> $TS_OUTPUT 2>&1
ts_fdisk_clean $TS_DEVICE
ts_finalize_subtest
+#
+# Test first LBA smaller than libfdisk default (~1MiB) and small gaps between
+# logical partitions (just only one sector for EBR).
+#
+ts_init_subtest "explicit-size"
+$TS_CMD_WIPEFS -a ${TS_DEVICE} &> /dev/null
+udevadm settle
+$TS_CMD_SFDISK --unit S ${TS_DEVICE} >> $TS_OUTPUT 2>&1 <<EOF
+label: dos
+1, 1000, L
+1001, 1000, S
+2001, 1000
+3001,,E
+3002,1000,L
+4003,1000,L
+5004,,L
+EOF
+ts_fdisk_clean $TS_DEVICE
+udevadm settle
+ts_finalize_subtest
+
rmmod scsi_debug
ts_finalize