Timeout problems with "blkid" applet
Denys Vlasenko
vda.linux at googlemail.com
Sun Feb 15 05:54:45 UTC 2009
On Friday 13 February 2009 09:59, Alexander Griesser wrote:
> 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.
Info you provided is good enough. I see that blkid does many reads
even if first one fails.
Try attached patch, it makes read failures to abort the probing
and go to the next device.
> busybox blkid shows hda1 _AND_ ram0, GNU blkid doesn't show ram0 but it
> shows an additional TYPE attribute which busybox blkid doesn't.
This is expected, we don't support all attributes.
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: a.patch
Type: text/x-diff
Size: 19210 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090215/3a04334f/attachment-0001.bin>
More information about the busybox
mailing list