]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
test: Add UDF hdd image with final block size 4096 created by Linux mkudffs 1.3
authorPali Rohár <pali.rohar@gmail.com>
Sun, 12 Nov 2017 21:05:15 +0000 (22:05 +0100)
committerPali Rohár <pali.rohar@gmail.com>
Sun, 12 Nov 2017 21:05:15 +0000 (22:05 +0100)
$ dd if=/dev/zero of=udf-hdd-mkudffs-1.3-7.img bs=1M count=10
$ mkudffs -l Label512 -b 512 udf-hdd-mkudffs-1.3-7.img
$ mkudffs -l Label4096 -b 4096 udf-hdd-mkudffs-1.3-7.img

Image file was first formatted with block size 512 and then reformatted
with block size 4096. Volume Recognition Sequence was overwritten and every
Volume Structure Descriptor is now 4096 bytes long. Trying to read second
VSD as 2048 bytes long will fail because 4069 bytes long VSD is padded with
zeros. To verify that image file was properly detected, it should have
label "Label4096" and not "Label512".

tests/expected/blkid/low-probe-udf-hdd-mkudffs-1.3-7 [new file with mode: 0644]
tests/ts/blkid/images-fs/udf-hdd-mkudffs-1.3-7.img.xz [new file with mode: 0644]

diff --git a/tests/expected/blkid/low-probe-udf-hdd-mkudffs-1.3-7 b/tests/expected/blkid/low-probe-udf-hdd-mkudffs-1.3-7
new file mode 100644 (file)
index 0000000..a78606e
--- /dev/null
@@ -0,0 +1,10 @@
+ID_FS_LABEL=Label4096
+ID_FS_LABEL_ENC=Label4096
+ID_FS_LOGICAL_VOLUME_ID=Label4096
+ID_FS_TYPE=udf
+ID_FS_USAGE=filesystem
+ID_FS_UUID=5a08b6f521891529
+ID_FS_UUID_ENC=5a08b6f521891529
+ID_FS_VERSION=2.01
+ID_FS_VOLUME_ID=Label4096
+ID_FS_VOLUME_SET_ID=5a08b6f521891529LinuxUDF
diff --git a/tests/ts/blkid/images-fs/udf-hdd-mkudffs-1.3-7.img.xz b/tests/ts/blkid/images-fs/udf-hdd-mkudffs-1.3-7.img.xz
new file mode 100644 (file)
index 0000000..5940009
Binary files /dev/null and b/tests/ts/blkid/images-fs/udf-hdd-mkudffs-1.3-7.img.xz differ