summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPali Rohár2017-06-22 10:38:24 +0200
committerPali Rohár2017-06-22 10:38:24 +0200
commit56dce6b7fc60e837e4a64fd9091cc28f22c089c4 (patch)
treeaf528803dd45a0455beecaa7e25f78eda21775a0 /tests
parentlibblkid: udf: Fix parsing of UDF dstring structures (diff)
downloadkernel-qcow2-util-linux-56dce6b7fc60e837e4a64fd9091cc28f22c089c4.tar.gz
kernel-qcow2-util-linux-56dce6b7fc60e837e4a64fd9091cc28f22c089c4.tar.xz
kernel-qcow2-util-linux-56dce6b7fc60e837e4a64fd9091cc28f22c089c4.zip
tests: Add UDF hdd image which label has length 30 characters
Structure dstring for label has 32 bytes, first byte is 8 (Compression ID), last byte is 30 (count of 8bit characters in label). Therefore label is not nul terminated and dstring parser needs to handle it (fixed in previous commit). $ dd if=/dev/zero of=udf-hdd-mkudffs-1.3-6.img bs=1M count=10 $ mkudffs -l AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA -b 512 udf-hdd-mkudffs-1.3-6.img
Diffstat (limited to 'tests')
-rw-r--r--tests/expected/blkid/low-probe-udf-hdd-mkudffs-1.3-69
-rw-r--r--tests/ts/blkid/images-fs/udf-hdd-mkudffs-1.3-6.img.xzbin0 -> 2360 bytes
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/expected/blkid/low-probe-udf-hdd-mkudffs-1.3-6 b/tests/expected/blkid/low-probe-udf-hdd-mkudffs-1.3-6
new file mode 100644
index 000000000..4add7a3ad
--- /dev/null
+++ b/tests/expected/blkid/low-probe-udf-hdd-mkudffs-1.3-6
@@ -0,0 +1,9 @@
+ID_FS_LABEL=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+ID_FS_LABEL_ENC=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+ID_FS_LOGICAL_VOLUME_ID=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+ID_FS_TYPE=udf
+ID_FS_USAGE=filesystem
+ID_FS_UUID=59419a34ca436d67
+ID_FS_UUID_ENC=59419a34ca436d67
+ID_FS_VOLUME_ID=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+ID_FS_VOLUME_SET_ID=59419a34ca436d67LinuxUDF
diff --git a/tests/ts/blkid/images-fs/udf-hdd-mkudffs-1.3-6.img.xz b/tests/ts/blkid/images-fs/udf-hdd-mkudffs-1.3-6.img.xz
new file mode 100644
index 000000000..393ab9e69
--- /dev/null
+++ b/tests/ts/blkid/images-fs/udf-hdd-mkudffs-1.3-6.img.xz
Binary files differ