On Sunday 16 January 2005 11:57, Mark Huth wrote:
> >> Hi,
> >>
> >> I am encountering a problem when I access the host filesystem
> >> via hostfs and the directory has a lot of entries.  For
> >> example when I type in 'ls /mnt/host/usr/lib' uml just freezes
> >> and I have to ctrl-c to get back the prompt.  An strace shows
> >> the following repeating indefinately:
> >>
> >> getdents64(3, /* 170 entries */, 4096)  = 4080
> >>
> >> I am using FC3 and kernel 2.6.10 on both the host and uml
> >> (with the latest skas patch applied to the host).  I have
> >> disabled NPTL.  Has anyone else experienced this problem?
> >
> >I remember someone else talking about it (search "mp3" in the
>
> ML archive
>
> >message bodies), but we never got to actually debugging it,

> and I've never

> >been able to reproduce it...
> >
> >Thanks for this info, however I'll maybe ask you more info...
>
> for instance
>
> >your host setup / distro / glibc (the problem may be related
>
> to a glibc
>
> >bug)...

> Well after trying my hand at kernel debugging, I managed to
> narrow down where the problem is but I'm afraid I can't offer
> a suitable solution.  In the read_dir() function in
> hostfs_user.c the line: *pos = telldir(dir) was always
> returning 0 if the directory had a lot of entries. 
Hmm, what's up with seekdir()? Can you watch errno during the whole function 
(and use the perror program to decode the values) to see where the problem 
starts?
> So in my 
> case if telldir returned 0 I just gave *pos a nudge and
> everyone (including me) was happy.
What do you mean by "a nudge"? *pos++?
> Not the proper solution 
> but good enough for me for the time being.
Well, at least this sheds *some* light... not still clear what's happening, 
but something more to work on... And if you can tell us more, we'll be very 
glad to accept your help and grateful.

-- 
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to