From: Pali Rohár Date: Sun, 12 Nov 2017 21:05:15 +0000 (+0100) Subject: test: Add UDF hdd image with final block size 4096 created by Linux mkudffs 1.3 X-Git-Tag: v2.32-rc1~213^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=99777b8d11117b1faab3f00a4c48f77b53c8b475;p=thirdparty%2Futil-linux.git test: Add UDF hdd image with final block size 4096 created by Linux mkudffs 1.3 $ 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". --- 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 index 0000000000..a78606eea1 --- /dev/null +++ b/tests/expected/blkid/low-probe-udf-hdd-mkudffs-1.3-7 @@ -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 index 0000000000..5940009d7b Binary files /dev/null and b/tests/ts/blkid/images-fs/udf-hdd-mkudffs-1.3-7.img.xz differ