diff options
author | Pali Rohár | 2017-06-22 10:38:24 +0200 |
---|---|---|
committer | Pali Rohár | 2017-06-22 10:38:24 +0200 |
commit | 56dce6b7fc60e837e4a64fd9091cc28f22c089c4 (patch) | |
tree | af528803dd45a0455beecaa7e25f78eda21775a0 /tests | |
parent | libblkid: udf: Fix parsing of UDF dstring structures (diff) | |
download | kernel-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-6 | 9 | ||||
-rw-r--r-- | tests/ts/blkid/images-fs/udf-hdd-mkudffs-1.3-6.img.xz | bin | 0 -> 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 Binary files differnew file mode 100644 index 000000000..393ab9e69 --- /dev/null +++ b/tests/ts/blkid/images-fs/udf-hdd-mkudffs-1.3-6.img.xz |