From: Blaisorblade <blaisorblade@yahoo.it>
To: Mark Huth <mc.huth@qut.edu.au>
Cc: user-mode-linux-user@lists.sourceforge.net,
user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] Re: [uml-user] problems with hostfs and large directories - start of diagnosys
Date: Wed, 19 Jan 2005 23:47:07 +0100 [thread overview]
Message-ID: <200501192347.07906.blaisorblade@yahoo.it> (raw)
In-Reply-To: <20f75b0f.bf845356.819dd00@mail-msgstore01.qut.edu.au>
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
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
parent reply other threads:[~2005-01-19 22:35 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20f75b0f.bf845356.819dd00@mail-msgstore01.qut.edu.au>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200501192347.07906.blaisorblade@yahoo.it \
--to=blaisorblade@yahoo.it \
--cc=mc.huth@qut.edu.au \
--cc=user-mode-linux-devel@lists.sourceforge.net \
--cc=user-mode-linux-user@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox