From: Blaisorblade <blaisorblade@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net,
Jeff Dike <jdike@addtoit.com>
Cc: wang lianwei <lianwei.wang@gmail.com>
Subject: Re: [uml-devel] UML hostfs bugs
Date: Sat, 12 Aug 2006 22:10:31 +0200 [thread overview]
Message-ID: <200608122210.32222.blaisorblade@yahoo.it> (raw)
In-Reply-To: <200608122022.42389.blaisorblade@yahoo.it>
On Saturday 12 August 2006 20:22, Blaisorblade wrote:
> On Thursday 10 August 2006 17:42, wang lianwei wrote:
> > Hi all,
> >
> > There is a bug with UML kernel, some host directory can not be read, for
> > example "ls /mnt/host/usr/lib", this command is dead until you press
> > CTRL+c. I test it with Redhat Enterprise Linux 4.
> I can maybe understand why it could happen. I'd be more interested in
> checking if a simple sequence of readdir() calls (without seekdir()) would
> work (probably write a standalone test program, it will be easier to use
> and debug) and
> why read_dir needs to do seekdir (I think it's done to
> handle calls to seekdir by the underlying process, but there should be
> different ways to do it).
I want to propose as an alternative modifying hostfs_dir_fops.llseek to point
to a wrapper of generic_file_llseek doing what we need (i.e. seeking the
underlying pointer), and avoiding seekdir and telldir in read_dir.
This should fix the issue (I think).
I'm sorry but I will not have the time to code the patch, so please do it
yourselves; Wang, you're welcome to code it yourself if you feel like doing
it.
Bye
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade
http://www.user-mode-linux.org/~blaisorblade
Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2006-08-12 20:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-10 15:42 [uml-devel] UML hostfs bugs wang lianwei
2006-08-12 18:22 ` Blaisorblade
2006-08-12 20:10 ` Blaisorblade [this message]
2006-08-14 11:07 ` wang lianwei
2006-08-15 17:47 ` Blaisorblade
2006-08-16 10:19 ` wang lianwei
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=200608122210.32222.blaisorblade@yahoo.it \
--to=blaisorblade@yahoo.it \
--cc=jdike@addtoit.com \
--cc=lianwei.wang@gmail.com \
--cc=user-mode-linux-devel@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