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

Re: [Libguestfs] [PATCH RFC] blkid: start using libblkid directly instead



On Wed, Feb 15, 2012 at 04:42:45PM +0800, Wanlong Gao wrote:
> I did like this.
> Now get a problem like below:
> 
> The *vfs_type* calls this *get_blkid_tag* function.
> I added a disk image to guestfish, this disk image
> contains a partition "/dev/vda1" with "ext4" filesystem.
> Then I ran *vfs_type /dev/vda1", I got the result,
> but with "vfs_type /dev/vda", it hang.

 Hmm... strange. Try to define BLKID_DEBUG=0xffff env. variable,
 libblkid then prints many debug messages.

> It seems that the vfs_type can't get a type of /dev/vda,
> it's right that the type of /dev/vda is unknown, but
> why can't it go back with unknown result or NULL result?

 Yes, blkid_do_safeprobe() returns 1 if nothing detected.

    Karel

-- 
 Karel Zak  <kzak redhat com>
 http://karelzak.blogspot.com


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