summaryrefslogtreecommitdiff
path: root/tests/ts/blkid
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ts/blkid')
-rw-r--r--tests/ts/blkid/images-fs/adaptec-raid.img.bz2bin0 -> 256 bytes
-rw-r--r--tests/ts/blkid/images-fs/befs.img.bz2bin0 -> 36236 bytes
-rw-r--r--tests/ts/blkid/images-fs/bfs.img.bz2bin0 -> 133 bytes
-rw-r--r--tests/ts/blkid/images-fs/cramfs.img.bz2bin0 -> 124 bytes
-rw-r--r--tests/ts/blkid/images-fs/ddf-raid.img.bz2bin0 -> 599 bytes
-rw-r--r--tests/ts/blkid/images-fs/exfat.img.bz2bin0 -> 6301 bytes
-rw-r--r--tests/ts/blkid/images-fs/ext2.img.bz2bin0 -> 356 bytes
-rw-r--r--tests/ts/blkid/images-fs/ext3.img.bz2bin0 -> 1489 bytes
-rw-r--r--tests/ts/blkid/images-fs/fat.img.bz2bin0 -> 249 bytes
-rw-r--r--tests/ts/blkid/images-fs/fat16_noheads.img.bz2bin0 -> 336 bytes
-rw-r--r--tests/ts/blkid/images-fs/fat32_label_64MB.img.bz2bin0 -> 1151 bytes
-rw-r--r--tests/ts/blkid/images-fs/gfs2.img.bz2bin0 -> 130 bytes
-rw-r--r--tests/ts/blkid/images-fs/hfs.img.bz2bin0 -> 257 bytes
-rw-r--r--tests/ts/blkid/images-fs/hfsplus.img.bz2bin0 -> 300 bytes
-rw-r--r--tests/ts/blkid/images-fs/hpfs.img.bz2bin0 -> 2454 bytes
-rw-r--r--tests/ts/blkid/images-fs/hpt37x-raid.img.bz2bin0 -> 123 bytes
-rw-r--r--tests/ts/blkid/images-fs/hpt45x-raid.img.bz2bin0 -> 151 bytes
-rw-r--r--tests/ts/blkid/images-fs/iso-joliet.img.bz2bin0 -> 21050 bytes
-rw-r--r--tests/ts/blkid/images-fs/iso-rr-joliet.img.bz2bin0 -> 21380 bytes
-rw-r--r--tests/ts/blkid/images-fs/iso.img.bz2bin0 -> 20718 bytes
-rw-r--r--tests/ts/blkid/images-fs/isw-raid.img.bz2bin0 -> 251 bytes
-rw-r--r--tests/ts/blkid/images-fs/jbd.img.bz2bin0 -> 214 bytes
-rw-r--r--tests/ts/blkid/images-fs/jfs.img.bz2bin0 -> 3434 bytes
-rw-r--r--tests/ts/blkid/images-fs/jmicron-raid.img.bz2bin0 -> 159 bytes
-rw-r--r--tests/ts/blkid/images-fs/lsi-raid.img.bz2bin0 -> 146 bytes
-rw-r--r--tests/ts/blkid/images-fs/lvm2.img.bz2bin0 -> 177 bytes
-rw-r--r--tests/ts/blkid/images-fs/mdraid.img.bz2bin0 -> 160 bytes
-rw-r--r--tests/ts/blkid/images-fs/minix.img.bz2bin0 -> 138 bytes
-rw-r--r--tests/ts/blkid/images-fs/netware.img.bz2bin0 -> 239 bytes
-rw-r--r--tests/ts/blkid/images-fs/nilfs2.img.bz2bin0 -> 795 bytes
-rw-r--r--tests/ts/blkid/images-fs/ntfs.img.bz2bin0 -> 35942 bytes
-rw-r--r--tests/ts/blkid/images-fs/nvidia-raid.img.bz2bin0 -> 175 bytes
-rw-r--r--tests/ts/blkid/images-fs/ocfs2.img.bz2bin0 -> 1070 bytes
-rw-r--r--tests/ts/blkid/images-fs/promise-raid.img.bz2bin0 -> 784 bytes
-rw-r--r--tests/ts/blkid/images-fs/reiser3.img.bz2bin0 -> 282 bytes
-rw-r--r--tests/ts/blkid/images-fs/reiser4.img.bz2bin0 -> 372 bytes
-rw-r--r--tests/ts/blkid/images-fs/romfs.img.bz2bin0 -> 115 bytes
-rw-r--r--tests/ts/blkid/images-fs/silicon-raid.img.bz2bin0 -> 328 bytes
-rw-r--r--tests/ts/blkid/images-fs/small-fat32.img.bz2bin0 -> 372 bytes
-rw-r--r--tests/ts/blkid/images-fs/swap0.img.bz2bin0 -> 75 bytes
-rw-r--r--tests/ts/blkid/images-fs/swap1.img.bz2bin0 -> 121 bytes
-rw-r--r--tests/ts/blkid/images-fs/tuxonice.img.bz2bin0 -> 36891 bytes
-rw-r--r--tests/ts/blkid/images-fs/ubifs.img.bz2bin0 -> 937 bytes
-rw-r--r--tests/ts/blkid/images-fs/udf.img.bz2bin0 -> 2031 bytes
-rw-r--r--tests/ts/blkid/images-fs/ufs.img.bz2bin0 -> 1318 bytes
-rw-r--r--tests/ts/blkid/images-fs/via-raid.img.bz2bin0 -> 99 bytes
-rw-r--r--tests/ts/blkid/images-fs/vmfs.img.bz2bin0 -> 144 bytes
-rw-r--r--tests/ts/blkid/images-fs/vmfs_volume.img.bz2bin0 -> 287 bytes
-rw-r--r--tests/ts/blkid/images-fs/xfs.img.bz2bin0 -> 443 bytes
-rw-r--r--tests/ts/blkid/images-fs/zfs.img.bz2bin0 -> 10912 bytes
-rw-r--r--tests/ts/blkid/images-pt/bsd.img.bz2bin0 -> 122 bytes
-rw-r--r--tests/ts/blkid/images-pt/dos+bsd.img.bz2bin0 -> 1728 bytes
-rw-r--r--tests/ts/blkid/images-pt/gpt.img.bz2bin0 -> 494 bytes
-rw-r--r--tests/ts/blkid/images-pt/sgi.img.bz2bin0 -> 144 bytes
-rw-r--r--tests/ts/blkid/images-pt/sun.img.bz2bin0 -> 170 bytes
-rwxr-xr-xtests/ts/blkid/low-probe46
-rwxr-xr-xtests/ts/blkid/lowprobe-pt45
-rwxr-xr-xtests/ts/blkid/md-raid0-whole85
-rwxr-xr-xtests/ts/blkid/md-raid1-part91
-rwxr-xr-xtests/ts/blkid/md-raid1-whole85
60 files changed, 352 insertions, 0 deletions
diff --git a/tests/ts/blkid/images-fs/adaptec-raid.img.bz2 b/tests/ts/blkid/images-fs/adaptec-raid.img.bz2
new file mode 100644
index 0000000..d3c10d7
--- /dev/null
+++ b/tests/ts/blkid/images-fs/adaptec-raid.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/befs.img.bz2 b/tests/ts/blkid/images-fs/befs.img.bz2
new file mode 100644
index 0000000..f4deaec
--- /dev/null
+++ b/tests/ts/blkid/images-fs/befs.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/bfs.img.bz2 b/tests/ts/blkid/images-fs/bfs.img.bz2
new file mode 100644
index 0000000..54df48f
--- /dev/null
+++ b/tests/ts/blkid/images-fs/bfs.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/cramfs.img.bz2 b/tests/ts/blkid/images-fs/cramfs.img.bz2
new file mode 100644
index 0000000..d638116
--- /dev/null
+++ b/tests/ts/blkid/images-fs/cramfs.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/ddf-raid.img.bz2 b/tests/ts/blkid/images-fs/ddf-raid.img.bz2
new file mode 100644
index 0000000..b093493
--- /dev/null
+++ b/tests/ts/blkid/images-fs/ddf-raid.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/exfat.img.bz2 b/tests/ts/blkid/images-fs/exfat.img.bz2
new file mode 100644
index 0000000..f96c3f0
--- /dev/null
+++ b/tests/ts/blkid/images-fs/exfat.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/ext2.img.bz2 b/tests/ts/blkid/images-fs/ext2.img.bz2
new file mode 100644
index 0000000..d1811ce
--- /dev/null
+++ b/tests/ts/blkid/images-fs/ext2.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/ext3.img.bz2 b/tests/ts/blkid/images-fs/ext3.img.bz2
new file mode 100644
index 0000000..5394598
--- /dev/null
+++ b/tests/ts/blkid/images-fs/ext3.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/fat.img.bz2 b/tests/ts/blkid/images-fs/fat.img.bz2
new file mode 100644
index 0000000..1fa7f2d
--- /dev/null
+++ b/tests/ts/blkid/images-fs/fat.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/fat16_noheads.img.bz2 b/tests/ts/blkid/images-fs/fat16_noheads.img.bz2
new file mode 100644
index 0000000..4d3d26c
--- /dev/null
+++ b/tests/ts/blkid/images-fs/fat16_noheads.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/fat32_label_64MB.img.bz2 b/tests/ts/blkid/images-fs/fat32_label_64MB.img.bz2
new file mode 100644
index 0000000..ca76293
--- /dev/null
+++ b/tests/ts/blkid/images-fs/fat32_label_64MB.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/gfs2.img.bz2 b/tests/ts/blkid/images-fs/gfs2.img.bz2
new file mode 100644
index 0000000..bab2f90
--- /dev/null
+++ b/tests/ts/blkid/images-fs/gfs2.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/hfs.img.bz2 b/tests/ts/blkid/images-fs/hfs.img.bz2
new file mode 100644
index 0000000..d4fc1ab
--- /dev/null
+++ b/tests/ts/blkid/images-fs/hfs.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/hfsplus.img.bz2 b/tests/ts/blkid/images-fs/hfsplus.img.bz2
new file mode 100644
index 0000000..b6ad1b9
--- /dev/null
+++ b/tests/ts/blkid/images-fs/hfsplus.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/hpfs.img.bz2 b/tests/ts/blkid/images-fs/hpfs.img.bz2
new file mode 100644
index 0000000..a54e6df
--- /dev/null
+++ b/tests/ts/blkid/images-fs/hpfs.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/hpt37x-raid.img.bz2 b/tests/ts/blkid/images-fs/hpt37x-raid.img.bz2
new file mode 100644
index 0000000..52e13bb
--- /dev/null
+++ b/tests/ts/blkid/images-fs/hpt37x-raid.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/hpt45x-raid.img.bz2 b/tests/ts/blkid/images-fs/hpt45x-raid.img.bz2
new file mode 100644
index 0000000..1feaa5b
--- /dev/null
+++ b/tests/ts/blkid/images-fs/hpt45x-raid.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/iso-joliet.img.bz2 b/tests/ts/blkid/images-fs/iso-joliet.img.bz2
new file mode 100644
index 0000000..4e43c0b
--- /dev/null
+++ b/tests/ts/blkid/images-fs/iso-joliet.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/iso-rr-joliet.img.bz2 b/tests/ts/blkid/images-fs/iso-rr-joliet.img.bz2
new file mode 100644
index 0000000..97e8b76
--- /dev/null
+++ b/tests/ts/blkid/images-fs/iso-rr-joliet.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/iso.img.bz2 b/tests/ts/blkid/images-fs/iso.img.bz2
new file mode 100644
index 0000000..4389847
--- /dev/null
+++ b/tests/ts/blkid/images-fs/iso.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/isw-raid.img.bz2 b/tests/ts/blkid/images-fs/isw-raid.img.bz2
new file mode 100644
index 0000000..9214c96
--- /dev/null
+++ b/tests/ts/blkid/images-fs/isw-raid.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/jbd.img.bz2 b/tests/ts/blkid/images-fs/jbd.img.bz2
new file mode 100644
index 0000000..e6c4fc4
--- /dev/null
+++ b/tests/ts/blkid/images-fs/jbd.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/jfs.img.bz2 b/tests/ts/blkid/images-fs/jfs.img.bz2
new file mode 100644
index 0000000..1d4d249
--- /dev/null
+++ b/tests/ts/blkid/images-fs/jfs.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/jmicron-raid.img.bz2 b/tests/ts/blkid/images-fs/jmicron-raid.img.bz2
new file mode 100644
index 0000000..3b4b236
--- /dev/null
+++ b/tests/ts/blkid/images-fs/jmicron-raid.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/lsi-raid.img.bz2 b/tests/ts/blkid/images-fs/lsi-raid.img.bz2
new file mode 100644
index 0000000..ffd75c3
--- /dev/null
+++ b/tests/ts/blkid/images-fs/lsi-raid.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/lvm2.img.bz2 b/tests/ts/blkid/images-fs/lvm2.img.bz2
new file mode 100644
index 0000000..7bb84bf
--- /dev/null
+++ b/tests/ts/blkid/images-fs/lvm2.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/mdraid.img.bz2 b/tests/ts/blkid/images-fs/mdraid.img.bz2
new file mode 100644
index 0000000..d5a67a3
--- /dev/null
+++ b/tests/ts/blkid/images-fs/mdraid.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/minix.img.bz2 b/tests/ts/blkid/images-fs/minix.img.bz2
new file mode 100644
index 0000000..d11f3a8
--- /dev/null
+++ b/tests/ts/blkid/images-fs/minix.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/netware.img.bz2 b/tests/ts/blkid/images-fs/netware.img.bz2
new file mode 100644
index 0000000..9c20673
--- /dev/null
+++ b/tests/ts/blkid/images-fs/netware.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/nilfs2.img.bz2 b/tests/ts/blkid/images-fs/nilfs2.img.bz2
new file mode 100644
index 0000000..a9762eb
--- /dev/null
+++ b/tests/ts/blkid/images-fs/nilfs2.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/ntfs.img.bz2 b/tests/ts/blkid/images-fs/ntfs.img.bz2
new file mode 100644
index 0000000..dc1249f
--- /dev/null
+++ b/tests/ts/blkid/images-fs/ntfs.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/nvidia-raid.img.bz2 b/tests/ts/blkid/images-fs/nvidia-raid.img.bz2
new file mode 100644
index 0000000..21f062e
--- /dev/null
+++ b/tests/ts/blkid/images-fs/nvidia-raid.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/ocfs2.img.bz2 b/tests/ts/blkid/images-fs/ocfs2.img.bz2
new file mode 100644
index 0000000..7e203da
--- /dev/null
+++ b/tests/ts/blkid/images-fs/ocfs2.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/promise-raid.img.bz2 b/tests/ts/blkid/images-fs/promise-raid.img.bz2
new file mode 100644
index 0000000..64a5a08
--- /dev/null
+++ b/tests/ts/blkid/images-fs/promise-raid.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/reiser3.img.bz2 b/tests/ts/blkid/images-fs/reiser3.img.bz2
new file mode 100644
index 0000000..1802bc2
--- /dev/null
+++ b/tests/ts/blkid/images-fs/reiser3.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/reiser4.img.bz2 b/tests/ts/blkid/images-fs/reiser4.img.bz2
new file mode 100644
index 0000000..d07571e
--- /dev/null
+++ b/tests/ts/blkid/images-fs/reiser4.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/romfs.img.bz2 b/tests/ts/blkid/images-fs/romfs.img.bz2
new file mode 100644
index 0000000..f94d77b
--- /dev/null
+++ b/tests/ts/blkid/images-fs/romfs.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/silicon-raid.img.bz2 b/tests/ts/blkid/images-fs/silicon-raid.img.bz2
new file mode 100644
index 0000000..e3ccbf9
--- /dev/null
+++ b/tests/ts/blkid/images-fs/silicon-raid.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/small-fat32.img.bz2 b/tests/ts/blkid/images-fs/small-fat32.img.bz2
new file mode 100644
index 0000000..8b90f9c
--- /dev/null
+++ b/tests/ts/blkid/images-fs/small-fat32.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/swap0.img.bz2 b/tests/ts/blkid/images-fs/swap0.img.bz2
new file mode 100644
index 0000000..d027b6f
--- /dev/null
+++ b/tests/ts/blkid/images-fs/swap0.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/swap1.img.bz2 b/tests/ts/blkid/images-fs/swap1.img.bz2
new file mode 100644
index 0000000..37adedd
--- /dev/null
+++ b/tests/ts/blkid/images-fs/swap1.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/tuxonice.img.bz2 b/tests/ts/blkid/images-fs/tuxonice.img.bz2
new file mode 100644
index 0000000..a70c95a
--- /dev/null
+++ b/tests/ts/blkid/images-fs/tuxonice.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/ubifs.img.bz2 b/tests/ts/blkid/images-fs/ubifs.img.bz2
new file mode 100644
index 0000000..efba8f7
--- /dev/null
+++ b/tests/ts/blkid/images-fs/ubifs.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/udf.img.bz2 b/tests/ts/blkid/images-fs/udf.img.bz2
new file mode 100644
index 0000000..bd2deb0
--- /dev/null
+++ b/tests/ts/blkid/images-fs/udf.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/ufs.img.bz2 b/tests/ts/blkid/images-fs/ufs.img.bz2
new file mode 100644
index 0000000..67abbed
--- /dev/null
+++ b/tests/ts/blkid/images-fs/ufs.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/via-raid.img.bz2 b/tests/ts/blkid/images-fs/via-raid.img.bz2
new file mode 100644
index 0000000..9266f5e
--- /dev/null
+++ b/tests/ts/blkid/images-fs/via-raid.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/vmfs.img.bz2 b/tests/ts/blkid/images-fs/vmfs.img.bz2
new file mode 100644
index 0000000..0940143
--- /dev/null
+++ b/tests/ts/blkid/images-fs/vmfs.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/vmfs_volume.img.bz2 b/tests/ts/blkid/images-fs/vmfs_volume.img.bz2
new file mode 100644
index 0000000..cc0ec66
--- /dev/null
+++ b/tests/ts/blkid/images-fs/vmfs_volume.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/xfs.img.bz2 b/tests/ts/blkid/images-fs/xfs.img.bz2
new file mode 100644
index 0000000..cf6982b
--- /dev/null
+++ b/tests/ts/blkid/images-fs/xfs.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-fs/zfs.img.bz2 b/tests/ts/blkid/images-fs/zfs.img.bz2
new file mode 100644
index 0000000..dfaaef0
--- /dev/null
+++ b/tests/ts/blkid/images-fs/zfs.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-pt/bsd.img.bz2 b/tests/ts/blkid/images-pt/bsd.img.bz2
new file mode 100644
index 0000000..c4b05e4
--- /dev/null
+++ b/tests/ts/blkid/images-pt/bsd.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-pt/dos+bsd.img.bz2 b/tests/ts/blkid/images-pt/dos+bsd.img.bz2
new file mode 100644
index 0000000..cccdd8a
--- /dev/null
+++ b/tests/ts/blkid/images-pt/dos+bsd.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-pt/gpt.img.bz2 b/tests/ts/blkid/images-pt/gpt.img.bz2
new file mode 100644
index 0000000..df4de7c
--- /dev/null
+++ b/tests/ts/blkid/images-pt/gpt.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-pt/sgi.img.bz2 b/tests/ts/blkid/images-pt/sgi.img.bz2
new file mode 100644
index 0000000..3b1c313
--- /dev/null
+++ b/tests/ts/blkid/images-pt/sgi.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/images-pt/sun.img.bz2 b/tests/ts/blkid/images-pt/sun.img.bz2
new file mode 100644
index 0000000..adf4f02
--- /dev/null
+++ b/tests/ts/blkid/images-pt/sun.img.bz2
Binary files differ
diff --git a/tests/ts/blkid/low-probe b/tests/ts/blkid/low-probe
new file mode 100755
index 0000000..9dc1a17
--- /dev/null
+++ b/tests/ts/blkid/low-probe
@@ -0,0 +1,46 @@
+#!/bin/bash
+
+#
+# Copyright (C) 2009 Karel Zak <kzak@redhat.com>
+#
+# This file is part of util-linux.
+#
+# This file is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+
+TS_TOPDIR="$(dirname $0)/../.."
+TS_DESC="low-level superblocks probing"
+
+. $TS_TOPDIR/functions.sh
+
+ts_init "$*"
+
+if [ ! -x "$TS_CMD_BLKID" ]; then
+ ts_skip "blkid disabled"
+fi
+
+mkdir -p $TS_OUTDIR/images-fs
+
+for img in $(ls $TS_SELF/images-fs/*.img.bz2 | sort); do
+ name=$(basename $img .img.bz2)
+ outimg=$TS_OUTDIR/images-fs/${name}.img
+
+ ts_init_subtest $name
+
+ bunzip2 < $img > $outimg
+
+ #/lib/udev/vol_id $outimg | egrep -v '[[:alnum:]_]*=$' | sort > $TS_OUTPUT 2>&1
+ $TS_CMD_BLKID -p -o udev $outimg 2>&1 | sort > $TS_OUTPUT
+ ts_finalize_subtest
+done
+
+ts_finalize
+
diff --git a/tests/ts/blkid/lowprobe-pt b/tests/ts/blkid/lowprobe-pt
new file mode 100755
index 0000000..b88dd60
--- /dev/null
+++ b/tests/ts/blkid/lowprobe-pt
@@ -0,0 +1,45 @@
+#!/bin/bash
+
+#
+# Copyright (C) 2009 Karel Zak <kzak@redhat.com>
+#
+# This file is part of util-linux.
+#
+# This file is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+
+TS_TOPDIR="$(dirname $0)/../.."
+TS_DESC="partitions probing"
+
+. $TS_TOPDIR/functions.sh
+
+ts_init "$*"
+
+if [ ! -x "$TS_HELPER_PARTITIONS" ]; then
+ ts_skip "blkid disabled"
+fi
+
+mkdir -p $TS_OUTDIR/images-pt
+
+for img in $(ls $TS_SELF/images-pt/*.img.bz2 | sort); do
+ name=$(basename $img .img.bz2)
+ outimg=$TS_OUTDIR/images-pt/${name}.img
+
+ ts_init_subtest $name
+
+ bunzip2 < $img > $outimg
+
+ $TS_HELPER_PARTITIONS $outimg &> $TS_OUTPUT
+ ts_finalize_subtest
+done
+
+ts_finalize
+
diff --git a/tests/ts/blkid/md-raid0-whole b/tests/ts/blkid/md-raid0-whole
new file mode 100755
index 0000000..7a55c54
--- /dev/null
+++ b/tests/ts/blkid/md-raid0-whole
@@ -0,0 +1,85 @@
+#!/bin/bash
+
+#
+# Copyright (C) 2010 Karel Zak <kzak@redhat.com>
+#
+# This file is part of util-linux.
+#
+# This file is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+
+TS_TOPDIR="$(dirname $0)/../.."
+TS_DESC="MD raid0 (whole-disks)"
+
+. $TS_TOPDIR/functions.sh
+ts_init "$*"
+ts_skip_nonroot
+[ -x /sbin/mdadm ] || ts_skip "missing mdadm"
+
+set -o pipefail
+
+ts_log "Initialize devices"
+IMGNAME="${TS_OUTDIR}/${TS_TESTNAME}"
+
+DEVICE1=$(ts_device_init 50 ${IMGNAME}1.img)
+[ "$?" == 0 ] || ts_die "Cannot init device1"
+
+DEVICE2=$(ts_device_init 50 ${IMGNAME}2.img)
+[ "$?" == 0 ] || ts_die "Cannot init device2" $DEVICE1
+
+MD_DEVNAME=md8
+MD_DEVICE=/dev/${MD_DEVNAME}
+
+/sbin/mdadm -q -S ${MD_DEVICE} &> /dev/null
+
+ts_log "Create RAID device"
+/sbin/mdadm -q --create ${MD_DEVICE} --metadata=0.90 --chunk=64 --level=0 \
+ --raid-devices=2 ${DEVICE1} ${DEVICE2} >> $TS_OUTPUT 2>&1
+
+ts_log "Create partitions on RAID device"
+$TS_CMD_FDISK ${MD_DEVICE} >> $TS_OUTPUT 2>&1 <<EOF
+n
+p
+1
+
++10M
+n
+p
+2
+
+
+p
+w
+q
+EOF
+
+sleep 3
+
+ts_log "Probe first RAID member"
+$TS_CMD_BLKID -p -o udev $DEVICE1 2>&1 | sort >> $TS_OUTPUT
+
+ts_log "Probe second RAID member"
+$TS_CMD_BLKID -p -o udev $DEVICE1 2>&1 | sort >> $TS_OUTPUT
+
+ts_log "Stop RAID device"
+/sbin/mdadm -q -S ${MD_DEVICE} >> $TS_OUTPUT 2>&1
+
+sleep 3
+
+ts_log "Deinitialize devices"
+ts_device_deinit $DEVICE1
+ts_device_deinit $DEVICE2
+
+ts_fdisk_clean
+# remove generated UUIDs
+sed -i -e 's/ID_FS_UUID.*//g' $TS_OUTPUT
+
+ts_finalize
diff --git a/tests/ts/blkid/md-raid1-part b/tests/ts/blkid/md-raid1-part
new file mode 100755
index 0000000..e13901d
--- /dev/null
+++ b/tests/ts/blkid/md-raid1-part
@@ -0,0 +1,91 @@
+#!/bin/bash
+
+#
+# Copyright (C) 2010 Karel Zak <kzak@redhat.com>
+#
+# This file is part of util-linux.
+#
+# This file is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+
+TS_TOPDIR="$(dirname $0)/../.."
+TS_DESC="MD raid1 (last partition)"
+
+. $TS_TOPDIR/functions.sh
+ts_init "$*"
+ts_skip_nonroot
+
+modprobe --dry-run --quiet scsi_debug
+[ "$?" == 0 ] || ts_skip "missing scsi_debug module"
+[ -x /sbin/mdadm ] || ts_skip "missing mdadm"
+
+rmmod scsi_debug &> /dev/null
+modprobe scsi_debug dev_size_mb=51 sector_size=512
+[ "$?" == 0 ] || ts_die "Cannot init device"
+
+sleep 3
+
+DEVNAME=$(grep scsi_debug /sys/block/*/device/model | awk -F '/' '{print $4}')
+[ "x${DEVNAME}" == "x" ] && ts_die "Cannot find device"
+
+DEVICE="/dev/${DEVNAME}"
+
+ts_log "Create partitions"
+$TS_CMD_FDISK ${DEVICE} >> $TS_OUTPUT 2>&1 <<EOF
+n
+p
+1
+
++25M
+n
+p
+2
+
+
+p
+w
+q
+EOF
+
+sleep 3
+MD_DEVNAME=md8
+MD_DEVICE=/dev/${MD_DEVNAME}
+
+ts_log "Create RAID1 device"
+/sbin/mdadm -q -S ${MD_DEVICE} &> /dev/null
+/sbin/mdadm -q --create ${MD_DEVICE} --metadata=0.90 --chunk=64 --level=1 \
+ --raid-devices=2 ${DEVICE}1 ${DEVICE}2 >> $TS_OUTPUT 2>&1
+
+sleep 3
+
+ts_log "Probe whole-disk"
+$TS_CMD_BLKID -p -o udev ${DEVICE} 2>&1 | sort >> $TS_OUTPUT
+
+ts_log "Probe first RAID member"
+$TS_CMD_BLKID -p -o udev ${DEVICE}1 2>&1 | sort >> $TS_OUTPUT
+
+ts_log "Probe second RAID member"
+$TS_CMD_BLKID -p -o udev ${DEVICE}2 2>&1 | sort >> $TS_OUTPUT
+
+/sbin/mdadm -q -S ${MD_DEVICE} >> $TS_OUTPUT 2>&1
+
+sleep 3
+rmmod scsi_debug
+
+ts_fdisk_clean
+# substitue UUIDs and major/minor number before comparison
+sed -i \
+ -e 's/^\(ID_FS_UUID\)=.*/\1=__ts_uuid__/' \
+ -e 's/^\(ID_FS_UUID_ENC\)=.*/\1=__ts_uuid_enc__/' \
+ -e 's/^\(ID_PART_ENTRY_DISK\)=.*/\1=__ts_majorminor__/' \
+ $TS_OUTPUT
+
+ts_finalize
diff --git a/tests/ts/blkid/md-raid1-whole b/tests/ts/blkid/md-raid1-whole
new file mode 100755
index 0000000..32e17b8
--- /dev/null
+++ b/tests/ts/blkid/md-raid1-whole
@@ -0,0 +1,85 @@
+#!/bin/bash
+
+#
+# Copyright (C) 2010 Karel Zak <kzak@redhat.com>
+#
+# This file is part of util-linux.
+#
+# This file is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+
+TS_TOPDIR="$(dirname $0)/../.."
+TS_DESC="MD raid1 (whole-disks)"
+
+. $TS_TOPDIR/functions.sh
+ts_init "$*"
+ts_skip_nonroot
+[ -x /sbin/mdadm ] || ts_skip "missing mdadm"
+
+set -o pipefail
+
+ts_log "Initialize devices"
+IMGNAME="${TS_OUTDIR}/${TS_TESTNAME}"
+
+DEVICE1=$(ts_device_init 50 ${IMGNAME}1.img)
+[ "$?" == 0 ] || ts_die "Cannot init device1"
+
+DEVICE2=$(ts_device_init 50 ${IMGNAME}2.img)
+[ "$?" == 0 ] || ts_die "Cannot init device2" $DEVICE1
+
+MD_DEVNAME=md8
+MD_DEVICE=/dev/${MD_DEVNAME}
+
+/sbin/mdadm -q -S ${MD_DEVICE} &> /dev/null
+
+ts_log "Create RAID device"
+/sbin/mdadm -q --create ${MD_DEVICE} --metadata=0.90 --chunk=64 --level=1 \
+ --raid-devices=2 ${DEVICE1} ${DEVICE2} >> $TS_OUTPUT 2>&1
+
+ts_log "Create partitions on RAID device"
+$TS_CMD_FDISK ${MD_DEVICE} >> $TS_OUTPUT 2>&1 <<EOF
+n
+p
+1
+
++10M
+n
+p
+2
+
++10M
+p
+w
+q
+EOF
+
+sleep 3
+
+ts_log "Probe first RAID member"
+$TS_CMD_BLKID -p -o udev $DEVICE1 2>&1 | sort >> $TS_OUTPUT
+
+ts_log "Probe second RAID member"
+$TS_CMD_BLKID -p -o udev $DEVICE1 2>&1 | sort >> $TS_OUTPUT
+
+ts_log "Stop RAID device"
+/sbin/mdadm -q -S ${MD_DEVICE} >> $TS_OUTPUT 2>&1
+
+sleep 3
+
+ts_log "Deinitialize devices"
+ts_device_deinit $DEVICE1
+ts_device_deinit $DEVICE2
+
+ts_fdisk_clean
+# remove generated UUIDs
+sed -i -e 's/ID_FS_UUID.*//g' $TS_OUTPUT
+
+ts_finalize