[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [uml-user] proc fs and ip address
On Friday 06 October 2006 00:48, Nic James Ferrier wrote:
> Jeff Dike <jdike@xxxxxxxxxxx> writes:
> > Given that you need to find the dhcp client and count on it having the
> > lease file open on a particular descriptor, I would call this not very
> > nice.
>
> /8->
>
> I think I can alter mconsole_kern::mconsole_proc so that it returns
> data for directories the same way as it does for files.
>
> Is there a reason that can't be done?
No, it can be done. Produce a working patch and then that will be ok, and I
guess it will be appreciated (at least by me). It isn't IMHO that much
trivial however - the code will be probably be similar but not identical to
the userspace equivalent (using getdents()).
Then, if the patch should be included, one could wonder about the format to
use for data passing - one could pass, say, the output of ls -l, but better
designs (implying changes in mconsole protocols) exist; one could also split
the "listing" and the "stat" operations, without changes to the mconsole
protocol; however a first implementation can surely avoid caring to these
problems.
--
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
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
This mailing list archive is a service of Copilotco.