Timeout problems with "blkid" applet

Alexander Griesser alexander.griesser at lkh-vil.or.at
Fri Feb 13 08:59:50 UTC 2009


Denys Vlasenko wrote:
>> This is blkid from my desktop system copied over to the thinclient.
>> The command exits immediately printing the blkid for hda1, so, that
>> works a treat.
> 
> Can you run "strace -o LOG /system/blkid" and post LOG file?

See attached file gnu-blkid.out.gz.

>> [usenet-test - ~ #] blkid
>> ---- now I have to wait for approx. 4m30s ----
>> /dev/ram0: LABEL="Compressed" TYPE="cramfs"
>> /dev/hda1: LABEL="LXTC_BOOT" UUID="9406c03b-e4dc-4cbe-867a-b18d3fceec15"
>> SEC_TYPE="ext2" TYPE="ext3"
>> [usenet-test - ~ #]
>>
>> So, 4m30s is a bit tough in this case.
> 
> Can you produce a strace of this one too?

See attached file busybox-blkid.out.gz.

>> Additionally, why does BB blkid show /dev/ram0 whereas the GNU(?) blkid
>> doesn't?
> 
> busybox's blkid scans all block devices present in /dev.
> Please provide more info, I might be able to add
> code which probes for precense of removable media
> and skips it if not present.

What info do you need? I will be happy to provide as much information
as is necessary for that issue to get resolved.
I'm using mdev to populate my /dev directory.

>> And, SEC_TYPE is also only in the BB output by default.
> 
> What SEC_TYPE? I see no SEC_TYPE in busybox output.

In my above mentioned example, there was one, see my quote above.
When running that again now to produce the strace output, I haven't seen
that again. A bit strange, though, because I cannot reproduce that
again, so let's leave that for now.

So, this is the current difference:

[testlxtc1 - ~ #] blkid
/dev/hda1: LABEL="LXTC_BOOT" UUID="d780043e-272c-4e3c-bfb8-14837e0c6a7e"
/dev/ram0: LABEL="Compressed"
[testlxtc1 - ~ #] /system/blkid
/dev/hda1: LABEL="LXTC_BOOT" UUID="d780043e-272c-4e3c-bfb8-14837e0c6a7e"
TYPE="ext2"
[testlxtc1 - ~ #]

busybox blkid shows hda1 _AND_ ram0, GNU blkid doesn't show ram0 but it
shows an additional TYPE attribute which busybox blkid doesn't.

ciao,
-- 
Alexander Griesser (Netzwerkadministration)
E-Mail: alexander.griesser at lkh-vil.or.at | Web: http://www.lkh-vil.or.at
KABEG LKH Villach | Nikolaigasse 43 | 9500 Villach
Tel.:   +43 4242 208 3061 | Fax.:   +43 4242 208 971 2061

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnu-blkid.out.gz
Type: application/x-gzip
Size: 1480 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090213/6b600b0f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox-blkid.out.gz
Type: application/x-gzip
Size: 5784 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090213/6b600b0f/attachment-0001.bin>


More information about the busybox mailing list