On Tue, Mar 09, 2010 at 08:51:16PM +0100, Pascal Terjan wrote: > Hi > > nash (from mkinitrd) no longer finds swap devices since we updated > libblkid to 2.17.1 > > It seems that size is always 0 in blkid_probe_set_device which means > that later blkid_probe_is_tiny is always true. I don't think so. The code calls stat() or blkdev_get_size() to get size if the size argument is zero. Please, use BLKID_DEBUG=0xffff env. variable to debug libblkid. It prints "ready for low-probing, offset=%zd, size=%zd\n" after initialization. > nash uses only superblocks probe, and swap is not probed on tiny devices > so it fails try ./shlibs/blkid/samples/superblocks <device> this sample program uses only superblocks probing and the prober is initialized by blkid_new_probe_from_filename() where we call blkid_probe_set_device(pr, fd, 0, 0) and it works for me: BLKID_DEBUG=0xffff ./shlibs/blkid/samples/superblocks /dev/sda3 | grep ready ready for low-probing, offset=0, size=2410007040 Karel -- Karel Zak <kzak@xxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html