]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: Add UDF hdd image which label has length 30 characters
authorPali Rohár <pali.rohar@gmail.com>
Thu, 22 Jun 2017 08:38:24 +0000 (10:38 +0200)
committerPali Rohár <pali.rohar@gmail.com>
Thu, 22 Jun 2017 08:38:24 +0000 (10:38 +0200)
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

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

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 (file)
index 0000000..4add7a3
--- /dev/null
@@ -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 (file)
index 0000000..393ab9e
Binary files /dev/null and b/tests/ts/blkid/images-fs/udf-hdd-mkudffs-1.3-6.img.xz differ