From: Karel Zak Date: Mon, 15 Feb 2010 15:07:44 +0000 (+0100) Subject: tests: update fdisk tests X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0992af4b3865530f732df722c5c6370c53916a44;p=util-linux tests: update fdisk tests Signed-off-by: Karel Zak --- diff --git a/tests/expected/fdisk/align-512-4K b/tests/expected/fdisk/align-512-4K index 68676796..133f1bea 100644 --- a/tests/expected/fdisk/align-512-4K +++ b/tests/expected/fdisk/align-512-4K @@ -21,31 +21,31 @@ Command (m for help): Changing display/entry units to sectors Command (m for help): Command action e extended p primary partition (1-4) -Partition number (1-4): First sector (64-102399, default 64): Using default value 64 -Last sector, +sectors or +size{K,M,G} (64-102399, default 102399): +Partition number (1-4): First sector (2048-102399, default 2048): Using default value 2048 +Last sector, +sectors or +size{K,M,G} (2048-102399, default 102399): Command (m for help): Command action e extended p primary partition (1-4) -Partition number (1-4): First sector (20544-102399, default 20544): Using default value 20544 -Last sector, +sectors or +size{K,M,G} (20544-102399, default 102399): +Partition number (1-4): First sector (22528-102399, default 22528): Using default value 22528 +Last sector, +sectors or +size{K,M,G} (22528-102399, default 102399): Command (m for help): Command action e extended p primary partition (1-4) -Partition number (1-4): First sector (41024-102399, default 41024): Using default value 41024 -Last sector, +sectors or +size{K,M,G} (41024-102399, default 102399): +Partition number (1-4): First sector (43008-102399, default 43008): Using default value 43008 +Last sector, +sectors or +size{K,M,G} (43008-102399, default 102399): Command (m for help): Command action e extended p primary partition (1-4) Selected partition 4 -First sector (61504-102399, default 61504): Using default value 61504 -Last sector, +sectors or +size{K,M,G} (61504-102399, default 102399): Using default value 102399 +First sector (63488-102399, default 63488): Using default value 63488 +Last sector, +sectors or +size{K,M,G} (63488-102399, default 102399): Using default value 102399 -Command (m for help): First sector (61568-102399, default 61568): Using default value 61568 -Last sector, +sectors or +size{K,M,G} (61568-102399, default 102399): -Command (m for help): First sector (71872-102399, default 71872): Using default value 71872 -Last sector, +sectors or +size{K,M,G} (71872-102399, default 102399): -Command (m for help): First sector (82176-102399, default 82176): Using default value 82176 -Last sector, +sectors or +size{K,M,G} (82176-102399, default 102399): Using default value 102399 +Command (m for help): First sector (65536-102399, default 65536): Using default value 65536 +Last sector, +sectors or +size{K,M,G} (65536-102399, default 102399): +Command (m for help): First sector (77824-102399, default 77824): Using default value 77824 +Last sector, +sectors or +size{K,M,G} (77824-102399, default 102399): +Command (m for help): First sector (90112-102399, default 90112): Using default value 90112 +Last sector, +sectors or +size{K,M,G} (90112-102399, default 102399): Using default value 102399 Command (m for help): Disk /dev/sdb: 52 MB, 52428800 bytes @@ -56,13 +56,13 @@ I/O size (minimum/optimal): 4096 bytes / 32768 bytes Device Boot Start End Blocks Id System -/dev/sdb1 64 20543 10240 83 Linux -/dev/sdb2 20544 41023 10240 83 Linux -/dev/sdb3 41024 61503 10240 83 Linux -/dev/sdb4 61504 102399 20448 5 Extended -/dev/sdb5 61568 71807 5120 83 Linux -/dev/sdb6 71872 82111 5120 83 Linux -/dev/sdb7 82176 102399 10112 83 Linux +/dev/sdb1 2048 22527 10240 83 Linux +/dev/sdb2 22528 43007 10240 83 Linux +/dev/sdb3 43008 63487 10240 83 Linux +/dev/sdb4 63488 102399 19456 5 Extended +/dev/sdb5 65536 75775 5120 83 Linux +/dev/sdb6 77824 88063 5120 83 Linux +/dev/sdb7 90112 102399 6144 83 Linux Command (m for help): The partition table has been altered! diff --git a/tests/expected/fdisk/align-512-4K-63 b/tests/expected/fdisk/align-512-4K-63 index 789cfd7c..335b75dd 100644 --- a/tests/expected/fdisk/align-512-4K-63 +++ b/tests/expected/fdisk/align-512-4K-63 @@ -40,12 +40,12 @@ Selected partition 4 First sector (61447-102399, default 61447): Using default value 61447 Last sector, +sectors or +size{K,M,G} (61447-102399, default 102399): Using default value 102399 -Command (m for help): First sector (61454-102399, default 61503): Using default value 61503 -Last sector, +sectors or +size{K,M,G} (61503-102399, default 102399): -Command (m for help): First sector (61454-102399, default 71807): Using default value 71807 -Last sector, +sectors or +size{K,M,G} (71807-102399, default 102399): -Command (m for help): First sector (61454-102399, default 82111): Using default value 82111 -Last sector, +sectors or +size{K,M,G} (82111-102399, default 102399): Using default value 102399 +Command (m for help): First sector (61454-102399, default 63487): Using default value 63487 +Last sector, +sectors or +size{K,M,G} (63487-102399, default 102399): +Command (m for help): First sector (61454-102399, default 75775): Using default value 75775 +Last sector, +sectors or +size{K,M,G} (75775-102399, default 102399): +Command (m for help): First sector (61454-102399, default 88063): Using default value 88063 +Last sector, +sectors or +size{K,M,G} (88063-102399, default 102399): Using default value 102399 Command (m for help): Disk /dev/sdb: 52 MB, 52428800 bytes @@ -61,9 +61,9 @@ Alignment offset: 3584 bytes /dev/sdb2 20487 40966 10240 83 Linux /dev/sdb3 40967 61446 10240 83 Linux /dev/sdb4 61447 102399 20476+ 5 Extended -/dev/sdb5 61503 71742 5120 83 Linux -/dev/sdb6 71807 82046 5120 83 Linux -/dev/sdb7 82111 102399 10144+ 83 Linux +/dev/sdb5 63487 73726 5120 83 Linux +/dev/sdb6 75775 86014 5120 83 Linux +/dev/sdb7 88063 102399 7168+ 83 Linux Command (m for help): The partition table has been altered! diff --git a/tests/expected/fdisk/align-512-4K-md b/tests/expected/fdisk/align-512-4K-md index b6330ab9..4e10a574 100644 --- a/tests/expected/fdisk/align-512-4K-md +++ b/tests/expected/fdisk/align-512-4K-md @@ -21,13 +21,13 @@ Command (m for help): Changing display/entry units to sectors Command (m for help): Command action e extended p primary partition (1-4) -Partition number (1-4): First sector (64-102399, default 64): Using default value 64 -Last sector, +sectors or +size{K,M,G} (64-102399, default 102399): +Partition number (1-4): First sector (2048-102399, default 2048): Using default value 2048 +Last sector, +sectors or +size{K,M,G} (2048-102399, default 102399): Command (m for help): Command action e extended p primary partition (1-4) -Partition number (1-4): First sector (41024-102399, default 41024): Using default value 41024 -Last sector, +sectors or +size{K,M,G} (41024-102399, default 102399): Using default value 102399 +Partition number (1-4): First sector (43008-102399, default 43008): Using default value 43008 +Last sector, +sectors or +size{K,M,G} (43008-102399, default 102399): Using default value 102399 Command (m for help): Disk /dev/sdb: 52 MB, 52428800 bytes @@ -38,8 +38,8 @@ I/O size (minimum/optimal): 4096 bytes / 32768 bytes Device Boot Start End Blocks Id System -/dev/sdb1 64 41023 20480 83 Linux -/dev/sdb2 41024 102399 30688 83 Linux +/dev/sdb1 2048 43007 20480 83 Linux +/dev/sdb2 43008 102399 29696 83 Linux Command (m for help): The partition table has been altered! @@ -71,24 +71,24 @@ Command (m for help): Changing display/entry units to sectors Command (m for help): Command action e extended p primary partition (1-4) -Partition number (1-4): First sector (256-102015, default 256): Using default value 256 -Last sector, +sectors or +size{K,M,G} (256-102015, default 102015): +Partition number (1-4): First sector (2048-100095, default 2048): Using default value 2048 +Last sector, +sectors or +size{K,M,G} (2048-100095, default 100095): Command (m for help): Command action e extended p primary partition (1-4) -Partition number (1-4): First sector (20736-102015, default 20736): Using default value 20736 -Last sector, +sectors or +size{K,M,G} (20736-102015, default 102015): +Partition number (1-4): First sector (22528-100095, default 22528): Using default value 22528 +Last sector, +sectors or +size{K,M,G} (22528-100095, default 100095): Command (m for help): -Disk /dev/md8: 52 MB, 52232192 bytes -2 heads, 4 sectors/track, 12752 cylinders, total 102016 sectors +Disk /dev/md8: 51 MB, 51249152 bytes +2 heads, 4 sectors/track, 12512 cylinders, total 100096 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 65536 bytes / 131072 bytes Device Boot Start End Blocks Id System -/dev/md8p1 256 20735 10240 83 Linux -/dev/md8p2 20736 41215 10240 83 Linux +/dev/md8p1 2048 22527 10240 83 Linux +/dev/md8p2 22528 43007 10240 83 Linux Command (m for help): The partition table has been altered! diff --git a/tests/expected/fdisk/align-512-512-topology b/tests/expected/fdisk/align-512-512-topology index 5ccbc626..972dde38 100644 --- a/tests/expected/fdisk/align-512-512-topology +++ b/tests/expected/fdisk/align-512-512-topology @@ -17,31 +17,31 @@ Command (m for help): Changing display/entry units to sectors Command (m for help): Command action e extended p primary partition (1-4) -Partition number (1-4): First sector (64-102399, default 64): Using default value 64 -Last sector, +sectors or +size{K,M,G} (64-102399, default 102399): +Partition number (1-4): First sector (2048-102399, default 2048): Using default value 2048 +Last sector, +sectors or +size{K,M,G} (2048-102399, default 102399): Command (m for help): Command action e extended p primary partition (1-4) -Partition number (1-4): First sector (20544-102399, default 20544): Using default value 20544 -Last sector, +sectors or +size{K,M,G} (20544-102399, default 102399): +Partition number (1-4): First sector (22528-102399, default 22528): Using default value 22528 +Last sector, +sectors or +size{K,M,G} (22528-102399, default 102399): Command (m for help): Command action e extended p primary partition (1-4) -Partition number (1-4): First sector (41024-102399, default 41024): Using default value 41024 -Last sector, +sectors or +size{K,M,G} (41024-102399, default 102399): +Partition number (1-4): First sector (43008-102399, default 43008): Using default value 43008 +Last sector, +sectors or +size{K,M,G} (43008-102399, default 102399): Command (m for help): Command action e extended p primary partition (1-4) Selected partition 4 -First sector (61504-102399, default 61504): Using default value 61504 -Last sector, +sectors or +size{K,M,G} (61504-102399, default 102399): Using default value 102399 +First sector (63488-102399, default 63488): Using default value 63488 +Last sector, +sectors or +size{K,M,G} (63488-102399, default 102399): Using default value 102399 -Command (m for help): First sector (61568-102399, default 61568): Using default value 61568 -Last sector, +sectors or +size{K,M,G} (61568-102399, default 102399): -Command (m for help): First sector (71872-102399, default 71872): Using default value 71872 -Last sector, +sectors or +size{K,M,G} (71872-102399, default 102399): -Command (m for help): First sector (82176-102399, default 82176): Using default value 82176 -Last sector, +sectors or +size{K,M,G} (82176-102399, default 102399): Using default value 102399 +Command (m for help): First sector (65536-102399, default 65536): Using default value 65536 +Last sector, +sectors or +size{K,M,G} (65536-102399, default 102399): +Command (m for help): First sector (77824-102399, default 77824): Using default value 77824 +Last sector, +sectors or +size{K,M,G} (77824-102399, default 102399): +Command (m for help): First sector (90112-102399, default 90112): Using default value 90112 +Last sector, +sectors or +size{K,M,G} (90112-102399, default 102399): Using default value 102399 Command (m for help): Disk /dev/sdb: 52 MB, 52428800 bytes @@ -52,13 +52,13 @@ I/O size (minimum/optimal): 512 bytes / 32768 bytes Device Boot Start End Blocks Id System -/dev/sdb1 64 20543 10240 83 Linux -/dev/sdb2 20544 41023 10240 83 Linux -/dev/sdb3 41024 61503 10240 83 Linux -/dev/sdb4 61504 102399 20448 5 Extended -/dev/sdb5 61568 71807 5120 83 Linux -/dev/sdb6 71872 82111 5120 83 Linux -/dev/sdb7 82176 102399 10112 83 Linux +/dev/sdb1 2048 22527 10240 83 Linux +/dev/sdb2 22528 43007 10240 83 Linux +/dev/sdb3 43008 63487 10240 83 Linux +/dev/sdb4 63488 102399 19456 5 Extended +/dev/sdb5 65536 75775 5120 83 Linux +/dev/sdb6 77824 88063 5120 83 Linux +/dev/sdb7 90112 102399 6144 83 Linux Command (m for help): The partition table has been altered!