summaryrefslogtreecommitdiffstats
path: root/tests/ts/blkid
Commit message (Collapse)AuthorAgeFilesLines
* Added BlueStore test imageKenneth Van Alstyne2018-12-171-0/+0
|
* tests: add test images for drbd v08/v09Roland Kammerer2018-11-292-0/+0
| | | | | | | This adds DRBD meta data images for DRBD versions 8 and 9, as well as the according expected output. Signed-off-by: Roland Kammerer <roland.kammerer@linbit.com>
* libblkid: udf: Fix reporting UDF 2.60 revisionPali Rohár2018-05-251-0/+0
| | | | | | | | | | | | | According to the UDF 2.60 specification, the Minimum UDF Read Revision value shall be at most #0250 for all media with a UDF 2.60 file system. So in this case use Minimum UDF Write Revision as ID_FS_VERSION to distinguish between UDF 2.50 and UDF 2.60 discs. This commit also adds a testing Blu-Ray Recordable image with UDF revision 2.60 created by Nero which really sets Minimum UDF Read Revision to 2.50. Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
* Merge branch 'master' of https://github.com/pali/util-linuxKarel Zak2018-03-2718-0/+0
|\ | | | | | | | | | | | | * 'master' of https://github.com/pali/util-linux: tests: Add tests for FAT32 labels blkid: Encode any field which starts with LABEL in same way as LABEL field libblkid: vfat: Change parsing label in special cases
| * tests: Add tests for FAT32 labelsPali Rohár2017-11-2518-0/+0
| | | | | | | | | | | | | | | | | | | | These FAT32 images were generated for FAT label test suite in October 2017. Now blkid reports same FAT32 label as MS-DOS 6, 7 and Windows 98, XP, 10. For more information about test result see email: https://www.spinics.net/lists/kernel/msg2640891.html Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
* | tests: add mpool blkid test imageKarel Zak2018-02-051-0/+0
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | tests: added test for libblkid atari ptVaclav Dolezal2018-01-232-0/+0
| | | | | | | | Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
* | tests: add mdadm locksKarel Zak2017-12-073-0/+11
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | libblkid: Add VDO superblock information into blkidSweet Tea Dorminy2017-12-071-0/+0
|/ | | | | | | [kzak@redhat.com: - add tests/expected/blkid/low-probe-vdo - enlarge the image (must be > 1024)] Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: udf: Fix parsing UDF revisionPali Rohár2017-11-201-0/+0
| | | | | | | | | | | | | | | | | UDF revision is stored as decimal number in hexadecimal format. E.g. number 0x0150 is revision 1.50, number 0x0201 is revision 2.01. Apparently all UDF test images have number which has same representation in decimal and hexadecimal format, so problem was not detected. This patch adds new test image with UDF revision 1.50. Internally number is stored as 0x0150. In decimal format it is (incorrectly) 1.80, but in hexadecimal correct 1.50. $ dd if=/dev/zero of=udf-hdd-mkudffs-1.3-8.img bs=1M count=10 $ mkudffs -r 0x150 -b 512 udf-hdd-mkudffs-1.3-8.img Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
* tests: Add UDF cd image created by mkudfiso 20100208Pali Rohár2017-11-161-0/+0
| | | | | | | | | $ mkudfiso -v "Volume Label" . | tail -n +2 > udf-cd-mkudfiso-20100208.img mkudfiso 20100208 creates UDF images without valid LVID (and LVIDIU), so it is a good candidate for testing fallback code for ID_FS_VERSION. Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
* Merge branch 'udf' of https://github.com/pali/util-linuxKarel Zak2017-11-131-0/+0
|\ | | | | | | | | | | * 'udf' of https://github.com/pali/util-linux: test: Add UDF hdd image with final block size 4096 created by Linux mkudffs 1.3 libblkid: udf: Optimize and fix probing when block size > 2048 bytes
| * test: Add UDF hdd image with final block size 4096 created by Linux mkudffs 1.3Pali Rohár2017-11-121-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | $ 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".
* | libblkid: vfat: Fix reading labels which starts with byte 0x05Pali Rohár2017-11-091-0/+0
|/ | | | | | | | When FAT directory entry has leading byte 0x05 it is interpreted as byte 0xE5. This is how FAT stores file name which starts with byte 0xE5 as leading byte in 0xE5 in FAT directory entry means that file slot is empty. Fixes: #533
* tests: add LUKS test imagesMilan Broz2017-10-242-0/+0
| | | | | | | Testing image contains only the first 4k sector, so it is not valid, but for blkid it should be enough. Signed-off-by: Milan Broz <gmazyland@gmail.com>
* libblkid: mark UBI as RAIDKarel Zak2017-08-031-0/+0
| | | | | | | | | UBI is volume manager rather than filesystem. Note that libblkid has optimized RAIDs probing (don't search for another filesystems is RAID detected). We also don't search for RAIDs on very small devices, but this optimization is ignored for UBI char devices (size=1byte). Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: add support for UBI superblockRafał Miłecki2017-08-031-0/+0
| | | | | | | | | | | | | | | | | | UBI is a volume management system that can be used on a raw flash partition for providing multiple logical volumes. Detecting UBI superblock may be useful for tools wanting to simplify or automate attaching UBI. Please note it's not directly related to the ubifs support which is just a filesystem working on top of UBI volume. In other words: UBI can be used on MTD partition (e.g. /dev/mtdblock0) while ubifs can be used on UBI volume (e.g. /dev/ubi0_0). This patch adds simple code reading UBI version and unique number and setting it in the blkid_probe. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* tests: Add UDF hdd image which label has length 30 charactersPali Rohár2017-06-221-0/+0
| | | | | | | | | | 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: Add UDF hdd images with blocksize 1024 and 4096 created by Linux ↵Pali Rohár2017-06-142-0/+0
| | | | | | | | | | mkudffs 1.3 $ dd if=/dev/zero of=udf-hdd-mkudffs-1.3-4.img bs=1M count=10 $ mkudffs -l Label -b 1024 udf-hdd-mkudffs-1.3-4.img $ dd if=/dev/zero of=udf-hdd-mkudffs-1.3-5.img bs=1M count=10 $ mkudffs -l Label -b 4096 udf-hdd-mkudffs-1.3-5.img
* tests: Add UDF hdd image with non ASCII 8bit label created by Linux mkudffs 1.3Pali Rohár2017-05-161-0/+0
| | | | | $ dd if=/dev/zero of=udf-hdd-mkudffs-1.3-3.img bs=1M count=10 $ mkudffs -l 'ÿ' -b 2048 /tmp/udf-hdd-mkudffs-1.3-3.img
* tests: Add UDF CD-ROM hybrid image (ISO+Joliet+UDF) created by Nero 6Pali Rohár2017-05-051-0/+0
| | | | | | | | | | | | | | | | | | | This image was created by Nero Burning ROM version 6 via option CD-ROM (UDF/ISO) with UDF version 2.01 and enabled ISO Joliet extension. Moreover for testing purposes it has set custom Disc label (and also every other identifier) which is different for ISO, Joiliet and UDF part. It contains ISO/Joliet/UDF string prefix to distinguish between them. So reading this image as basic ISO would produce different label as when reading it as ISO with Joliet image and also different as UDF image. Windows detects its label as "UDF Label". Before commit ccfb5b0a1d318c1ac96884c70c7b5090331849fc blkid show label for this image as "Joliet Label" and after as "UDF Label". Note that it is not common to have such images with different label stored in Joliet part and in UDF part. Moreover it is very hard to generate them.
* tests: Add UDF hdd images created by Linux mkudffs 1.3Pali Rohár2017-05-012-0/+0
| | | | | | | | $ dd if=/dev/zero of=udf-hdd-mkudffs-1.3-1.img bs=1M count=10 $ mkudffs -l Label -b 512 udf-hdd-mkudffs-1.3-1.img $ dd if=/dev/zero of=udf-hdd-mkudffs-1.3-2.img bs=1M count=10 $ mkudffs -l Label udf-hdd-mkudffs-1.3-2.img
* tests: Rename udf-hdd-mkudffs* images to indicate used mkudffs versionPali Rohár2017-05-012-0/+0
|
* Merge branch 'tests-raid1' of https://github.com/rudimeier/util-linuxKarel Zak2016-10-261-0/+2
|\
| * test: fix raid1 minimum I/O sizeRuediger Meier2016-10-211-0/+2
| | | | | | | | | | | | | | Seems this has been changed in kernels >4.4.x or >4.8 from 512 bytes to 64K. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | tests: consolidate rmmod scsi_debugRuediger Meier2016-10-212-3/+0Star
|/ | | | | | | | | - auto cleanup on test exit - Add smart timeout: Newer openSUSE systems on OBS failed to rmmod almost always. udevadm settle does not seem to have any affect. - now tests will fail if rmmod fails Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: add DM error target for blkidKarel Zak2016-03-301-0/+45
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: --parallel prints results in a single lineRuediger Meier2016-03-051-1/+1
| | | | | | | | | | | | | | Like in non-parallel case we are printing only one line per (sub)test now. The output lines must contain the full test name to be useful. This patch does not change anything for the non-parallel output format except a bit code cleanup. BTW changed blkid/low-probe test description to have shorter lines. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: add some check_test_command requirementsRuediger Meier2016-02-121-0/+2
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: use xz instead of bzip2 for blkid imagesRuediger Meier2015-12-09134-6/+8
| | | | | | | | | | xz decompression creates sparse files if possible. This saves about 1G disk space in build directory and a lot I/O and time. BTW regarding compatibility ... CentOS 7 is the first system I've met which does not install bzip2 but xz only by default. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* libblkid: added drbdmanage control volume detection.Philipp Marek2015-08-241-0/+0
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add blkid script to test whole-disk MBR devicesKarel Zak2015-08-212-0/+41
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: never use -o pipefailRuediger Meier2015-04-212-4/+0Star
| | | | | | | | | | | | | | | | | | | It was hard to find out that pipefail was the reason why our test-suite could have random failures for aribtrary tests, for example the ones which are using ts_device_has_uuid() or ts_mount(). Bash's pipefall option is evil! It may return error for such a simple line like this one $ echo -e "xxx\nyyy" | grep -q "xxx" because the left echo command will get SIGPIPE when grep exits after the first match. So the command line above could return an error eventhough it does exactly what we want. This patch removes any pipefail from our tests. The funny thing is that I couldn't find any case where we relied on this feature anyway. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: introduce TS_LOOP_DEVS for cleanupRuediger Meier2015-04-142-12/+8Star
| | | | | | | | | | | | | | We are maintaining an array TS_LOOP_DEVS to de-initialize devices always on exit. Until now there was no cleanup in ts_skip(). The downside is that we can't execute ts_device_init() in a subshell anymore. The device is returned via global variable TS_LODEV, similar like we do already in ts_scsi_debug_init(). Tests which don't use ts_device_init() to create loop devices may use ts_register_loop_device() to get them cleaned up later. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: Add UDF hdd image created by NetBSD newfs_udf (from UDFclient 0.7.7)Pali Rohár2015-01-081-0/+0
| | | | | | | $ dd if=/dev/zero of=/tmp/test bs=1M count=10 $ newfs_udf -L discname /tmp/test Version from UDFclient 0.7.7 generate default Volume set identifier correctly.
* tests: Add UDF hdd image created by NetBSD newfs_udf (from UDFclient 0.7.5)Pali Rohár2015-01-081-0/+0
| | | | | | | | $ dd if=/dev/zero of=/tmp/test bs=1M count=10 $ newfs_udf -L discname /tmp/test Version from UDFclient 0.7.5 does not generate default Volume set identifier according to OSTA UDF specification. But it is used so for test is usefull.
* tests: Add UDF hdd image created by Linux mkudffs with custom paramsPali Rohár2015-01-081-0/+0
| | | | | | | | | | $ 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: Add UDF hdd image created by Linux mkudffsPali Rohár2015-01-081-0/+0
| | | | | $ dd if=/dev/zero of=/tmp/test bs=1M count=10 $ mkudffs -b 512 /tmp/test
* tests: Add UDF hdd image created by Windows 7Pali Rohár2015-01-081-0/+0
|
* tests: consolidate some checks for commandsRuediger Meier2014-05-153-11/+12
| | | | | | | | | | | Use ts_check_prog for mdadm, readelf, file, ntpdate, bc (mdadm was not always checked so far). There are some positive side-effects. We are using always $PATH now instead of randomly hardcoded /usr/bin, /sbin, etc. If we ever want to change this again, we should do this generically in ts_init. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: ts_scsi_debug_init must not run in a subshellRuediger Meier2014-05-131-8/+9
| | | | | | | | | | | ts_skip and ts_die won't work from subshell. Now we simply use TS_DEVICE which is globally set in that function. I've made sure that we never change TS_DEVICE variable after we've got it. So we could use it again for cleanup on exit in ts_{finalize,die,skip} functions. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: ts_device_init requires loop supportRuediger Meier2014-05-132-0/+2
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: check commands needed for running a test existSami Kerola2014-03-075-6/+14
| | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: avoid executing dirname(1) commandSami Kerola2014-02-175-5/+5
| | | | | | Bash parameter expansion does the same thing. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: update fdisk outputsKarel Zak2013-09-191-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add bcache imagesKarel Zak2013-09-112-0/+0
| | | | | | images generated by Rolf Fokkens <rolf@rolffokkens.nl> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: use stable MBR IDKarel Zak2013-09-111-0/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add XFS log imageKarel Zak2013-09-111-0/+0
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add BE minix testKarel Zak2013-04-153-0/+0
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: consolidate scsi_debug usageKarel Zak2013-04-122-15/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>