summaryrefslogtreecommitdiffstats
path: root/tests/expected/fdisk
diff options
context:
space:
mode:
authorKarel Zak2013-09-25 17:41:26 +0200
committerKarel Zak2013-09-25 17:41:43 +0200
commit5ae0491ee8b767f8f0bd3d0ea5a1c0e63be96a55 (patch)
treeff587de70e8fb160bff355fe6b53d651e644faa3 /tests/expected/fdisk
parentfdisk: print geometry for dos-compatible mode too (diff)
downloadkernel-qcow2-util-linux-5ae0491ee8b767f8f0bd3d0ea5a1c0e63be96a55.tar.gz
kernel-qcow2-util-linux-5ae0491ee8b767f8f0bd3d0ea5a1c0e63be96a55.tar.xz
kernel-qcow2-util-linux-5ae0491ee8b767f8f0bd3d0ea5a1c0e63be96a55.zip
ORIG_HEAD
tests: update sun label test * add fdisk -l outputs (to make the test more usable) * use more usable geometry * don't expect that 'create sun label' oprations asks for C/H/S (we follows fdisk_context defaults) Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/expected/fdisk')
-rw-r--r--tests/expected/fdisk/sunlabel91
1 files changed, 84 insertions, 7 deletions
diff --git a/tests/expected/fdisk/sunlabel b/tests/expected/fdisk/sunlabel
index e76a90f36..15ff6edd0 100644
--- a/tests/expected/fdisk/sunlabel
+++ b/tests/expected/fdisk/sunlabel
@@ -1,16 +1,93 @@
Initialize empty image
f1c9645dbc14efddc7d8a322685f26eb sunlabel.img
Create new SUN partition table
-b65dc433dfa0afa8983db30b94b0ce9c sunlabel.img
+f050fd2beb99f8d968bf17450f655f06 sunlabel.img
+
+Disk <removed>: 10 MiB, 10485760 bytes, 20480 sectors
+Geometry: 1 heads, 63 sectors/track, 325 cylinders
+Units: cylinders of 63 * 512 = 32256 bytes
+Sector size (logical/physical): 512 bytes / 512 bytes
+I/O size (minimum/optimal): 512 bytes / 512 bytes
+Disk label type: sun
+
+
Create first partition
-9e19c0c3704ab6902b2f912d8b862ad2 sunlabel.img
+e730c7ec8208601f41963f0485147248 sunlabel.img
+
+Disk <removed>: 10 MiB, 10485760 bytes, 20480 sectors
+Geometry: 1 heads, 63 sectors/track, 325 cylinders
+Units: cylinders of 63 * 512 = 32256 bytes
+Sector size (logical/physical): 512 bytes / 512 bytes
+I/O size (minimum/optimal): 512 bytes / 512 bytes
+Disk label type: sun
+
+Device Flag Start End Blocks Id System
+<removed>1 0 128 4032 83 Linux native
+
Set partition sysid
-df091a0bfe7ba8ac30d8030d369bea6a sunlabel.img
+df75defdb97fbd56222aed18631a22d0 sunlabel.img
+
+Disk <removed>: 10 MiB, 10485760 bytes, 20480 sectors
+Geometry: 1 heads, 63 sectors/track, 325 cylinders
+Units: cylinders of 63 * 512 = 32256 bytes
+Sector size (logical/physical): 512 bytes / 512 bytes
+I/O size (minimum/optimal): 512 bytes / 512 bytes
+Disk label type: sun
+
+Device Flag Start End Blocks Id System
+<removed>1 0 128 4032 4 SunOS usr
+
Set first partition readonly
-34b580eb58d91c1212898a05b49fb8df sunlabel.img
+da23f66698d9a553162887621d4c7490 sunlabel.img
+
+Disk <removed>: 10 MiB, 10485760 bytes, 20480 sectors
+Geometry: 1 heads, 63 sectors/track, 325 cylinders
+Units: cylinders of 63 * 512 = 32256 bytes
+Sector size (logical/physical): 512 bytes / 512 bytes
+I/O size (minimum/optimal): 512 bytes / 512 bytes
+Disk label type: sun
+
+Device Flag Start End Blocks Id System
+<removed>1 r 0 128 4032 4 SunOS usr
+
Set first partition mountable
-bc40afb4effe2f76ea0a7c4014dac45c sunlabel.img
+3ab76e8491b103eab52b2ae1856c1e30 sunlabel.img
+
+Disk <removed>: 10 MiB, 10485760 bytes, 20480 sectors
+Geometry: 1 heads, 63 sectors/track, 325 cylinders
+Units: cylinders of 63 * 512 = 32256 bytes
+Sector size (logical/physical): 512 bytes / 512 bytes
+I/O size (minimum/optimal): 512 bytes / 512 bytes
+Disk label type: sun
+
+Device Flag Start End Blocks Id System
+<removed>1 ur 0 128 4032 4 SunOS usr
+
Create second partition
-6c74817a6ed45bad0640ff445d4a9dd5 sunlabel.img
+
+Welcome to fdisk <removed>.
+Changes will remain in memory only, until you decide to write them.
+Be careful before using the write command.
+
+
+Command (m for help): Partition number (2-8, default 2): First cylinder (128-325, default 128): Last cylinder or +cylinders or +size{K,M,G,T,P} (128-325, default 325):
+Created a new <removed>.
+
+Command (m for help): The partition table has been altered.
+Syncing disks.
+
+a87e80830aa13d2d68b766962f052750 sunlabel.img
+
+Disk <removed>: 10 MiB, 10485760 bytes, 20480 sectors
+Geometry: 1 heads, 63 sectors/track, 325 cylinders
+Units: cylinders of 63 * 512 = 32256 bytes
+Sector size (logical/physical): 512 bytes / 512 bytes
+I/O size (minimum/optimal): 512 bytes / 512 bytes
+Disk label type: sun
+
+Device Flag Start End Blocks Id System
+<removed>1 ur 0 128 4032 4 SunOS usr
+<removed>2 128 325 6205+ 83 Linux native
+
Delete all partitions
-7b930443ac53307eb8823ffc1ce9d65e sunlabel.img
+502ba7a0cfdce2849c3a99881f0590c3 sunlabel.img