>> 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. So in my case if telldir returned 0 I just gave *pos a nudge and everyone (including me) was happy. Not the proper solution but good enough for me for the time being. ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ User-mode-linux-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
