Re: blkid_probe_is_tiny change in 2.17.1 breaks nash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le mercredi 10 mars 2010 à 00:12 +0100, Karel Zak a écrit :
> 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.

This is how I noticed, I always have (for all partitions):

ready for low-probing, offset=0, size=0

> > 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

[root@plop util-linux-ng]#
BLKID_DEBUG=0xffff ./shlibs/blkid/samples/superblocks /dev/sda5 | grep
ready
ready for low-probing, offset=0, size=0



--
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

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux