]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: fix sfdisk GPT test
authorKarel Zak <kzak@redhat.com>
Thu, 23 Apr 2015 13:08:26 +0000 (15:08 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 23 Apr 2015 13:08:26 +0000 (15:08 +0200)
The test uses too large last partition, libfdisk checks this problem
now.

Signed-off-by: Karel Zak <kzak@redhat.com>
tests/expected/sfdisk/gpt-read-dump
tests/expected/sfdisk/gpt-write-dump
tests/ts/sfdisk/gpt

index 8e8f3b2be585a47fb9cbc4a632ff19eebe8780ed..704bdd9f761e2b290a3632e3387d3066baef05b9 100644 (file)
@@ -20,7 +20,7 @@ Device             Start    End Sectors Size Type
 <removed>1   2048   8191    6144   3M Linux root (x86)
 <removed>2   8192  14335    6144   3M Linux filesystem
 <removed>3  14336  20479    6144   3M Linux filesystem
-<removed>4  20480 102399   81920  40M Linux filesystem
+<removed>4  20480 102366   81887  40M Linux filesystem
 
 The partition table has been altered.
 Calling ioctl() to re-read partition table.
@@ -36,4 +36,4 @@ Start    End Size UUID                                 Type             Name
  2048   8191   3M 4DD6948A-44F8-4E6C-8BDC-064F740704F8 Linux root (x86) 
  8192  14335   3M 44B51DEF-5F04-465A-91AA-2889A62D8E49 Linux filesystem 
 14336  20479   3M 643E1D0D-BC02-4CED-B83B-86121062858F Linux filesystem 
-20480 102399  40M D2A29B0A-FDEE-40C3-9BAE-B9FA782C986C Linux filesystem GPT is the best
+20480 102366  40M D2A29B0A-FDEE-40C3-9BAE-B9FA782C986C Linux filesystem GPT is the best
index bc4a7b96a50a976741400aed08cbe2af0a1dbd54..3ad79259f6e56b27534853b29e3350e9872ed083 100644 (file)
@@ -8,4 +8,4 @@ last-lba: 102366
 <removed>1 : start=        2048, size=        6144, type=44479540-F297-41B2-9AF7-D131D5F0458A, uuid=4DD6948A-44F8-4E6C-8BDC-064F740704F8
 <removed>2 : start=        8192, size=        6144, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=44B51DEF-5F04-465A-91AA-2889A62D8E49
 <removed>3 : start=       14336, size=        6144, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=643E1D0D-BC02-4CED-B83B-86121062858F
-<removed>4 : start=       20480, size=       81920, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=D2A29B0A-FDEE-40C3-9BAE-B9FA782C986C, name="GPT is the best"
+<removed>4 : start=       20480, size=       81887, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=D2A29B0A-FDEE-40C3-9BAE-B9FA782C986C, name="GPT is the best"
index de1184c94442614fe31cf4edc1a559068dcf062c..c6f9e95c2446e70d809b38f6136e55633497b6d4 100755 (executable)
@@ -89,7 +89,7 @@ label-id: 3b8559db-33af-43e9-befc-c331d829b539
 ${TS_DEVICE}1 : start=2048,  size=6144, type=44479540-F297-41B2-9AF7-D131D5F0458A, uuid=4dd6948a-44f8-4e6c-8bdc-064f740704f8
 ${TS_DEVICE}2 : start=8192,  size=6144, uuid=44b51def-5f04-465a-91aa-2889a62d8e49
 ${TS_DEVICE}3 : start=14336, size=6144, uuid=643e1d0d-bc02-4ced-b83b-86121062858f
-${TS_DEVICE}4 : start=20480, size=81920,uuid=d2a29b0a-fdee-40c3-9bae-b9fa782c986c, name="GPT is the best"
+${TS_DEVICE}4 : start=20480, size=81887,uuid=d2a29b0a-fdee-40c3-9bae-b9fa782c986c, name="GPT is the best"
 EOF
 ts_fdisk_clean $TS_DEVICE
 udevadm settle