]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: Add UDF hdd image created by Linux mkudffs with custom params
authorPali Rohár <pali.rohar@gmail.com>
Thu, 8 Jan 2015 16:29:58 +0000 (17:29 +0100)
committerPali Rohár <pali.rohar@gmail.com>
Thu, 8 Jan 2015 16:29:58 +0000 (17:29 +0100)
$ dd if=/dev/zero of=/tmp/test bs=1M count=10
$ mkudffs -b 512 --lvid=Label --vid=Label --vsid="Volume set identifier" /tmp/test

When calling mkudffs with --vsid param there is bug which cause that garbage
from application stack is copied into Volume set identifier after 8th character.
Characters 1 -- 16 are used in libblkid for generating UUID, so this is perfect
test example that everything is working!

tests/expected/blkid/low-probe-udf-hdd-mkudffs2 [new file with mode: 0644]
tests/ts/blkid/images-fs/udf-hdd-mkudffs2.img.bz2 [new file with mode: 0644]

diff --git a/tests/expected/blkid/low-probe-udf-hdd-mkudffs2 b/tests/expected/blkid/low-probe-udf-hdd-mkudffs2
new file mode 100644 (file)
index 0000000..a82cc34
--- /dev/null
@@ -0,0 +1,9 @@
+ID_FS_LABEL=Label
+ID_FS_LABEL_ENC=Label
+ID_FS_LOGICAL_VOLUME_ID=Label
+ID_FS_TYPE=udf
+ID_FS_USAGE=filesystem
+ID_FS_UUID=54aead8591280d01
+ID_FS_UUID_ENC=54aead8591280d01
+ID_FS_VOLUME_ID=Label
+ID_FS_VOLUME_SET_ID=54aead85\91(\r\ 1Volume set identifier
diff --git a/tests/ts/blkid/images-fs/udf-hdd-mkudffs2.img.bz2 b/tests/ts/blkid/images-fs/udf-hdd-mkudffs2.img.bz2
new file mode 100644 (file)
index 0000000..a3b9178
Binary files /dev/null and b/tests/ts/blkid/images-fs/udf-hdd-mkudffs2.img.bz2 differ